eigen3: 3.2.4

This commit is contained in:
Neophytos Kolokotronis 2015-02-23 14:46:46 +00:00
parent 382048c68c
commit 8aa398e306

31
eigen3/PKGBUILD Normal file
View File

@ -0,0 +1,31 @@
#contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/eigen
pkgname=eigen3
pkgver=3.2.4
pkgrel=1
pkgdesc="Lightweight C++ template library for vector and matrix math, a.k.a. linear algebra."
arch=('x86_64')
url='http://eigen.tuxfamily.org'
license=('GPL3' 'LGPL2.1' 'BSD' 'custom:MPL2' 'custom:MINPACK')
makedepends=('cmake' 'pkg-config')
source=("${pkgname}-${pkgver}.tar.bz2::http://bitbucket.org/eigen/eigen/get/${pkgver}.tar.bz2")
sha1sums=('64ea809acc449adbd8fe616def7d48ff4f0776a8')
build() {
mkdir -p build
cd build
cmake ../eigen-eigen-* \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd build
make DESTDIR="$pkgdir" install
# install custom licenses
install -Dm644 ../eigen-eigen-*/COPYING.MPL2 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 ../eigen-eigen-*/COPYING.BSD "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 ../eigen-eigen-*/COPYING.MINPACK "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}