#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" }