# Maintainer: Joey Dumont # Contributor: Lucas Hermann Negri pkgname=armadillo pkgver=9.600.5 _pkgver=9.600.5 # For use with RC releases, to replace the - with _ pkgrel=1 pkgdesc="C++ linear algebra library" arch=('i686' 'x86_64') url="http://arma.sourceforge.net/" license=('Apache') depends=('lapack' 'blas' 'arpack' 'superlu>=5.2.0') optdepends=('hdf5: HDF5 output' 'cuda: NVBLAS support' 'acml-cblas: ACML support') makedepends=('cmake') source=("http://downloads.sourceforge.net/sourceforge/arma/$pkgname-$_pkgver.tar.xz") install=armadillo.install sha512sums=('c513fe3534a5cbb8f2f1b47d5b593cf0c86f624f4cadfda0a7c30bc9fdab024041c3c317c4c0cca10733e62ab40fde5f0402bed97de8de388a0d6a9714d0fac0') build() { if [ "$CARCH" == "x86_64" ]; then ARMA64LIBDIR="-DINSTALL_LIB_DIR:PATH=/usr/lib" fi cd "${srcdir}/$pkgname-$_pkgver" cmake $ARMA64LIBDIR -DCMAKE_INSTALL_PREFIX:PATH=/usr . make } package() { cd "${srcdir}/$pkgname-$_pkgver" make DESTDIR="${pkgdir}" install install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }