# Maintainer: Joey Dumont # Contributor: Lucas Hermann Negri pkgname=armadillo pkgver=9.500.2 _pkgver=9.500.2 # 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=('461fc196ca7907b205f5f173ebdf2a297a28a1e20d582562314d524137d29425416c183da273856a0ce43ef10bcea4066497e72609477a036e2af9e06d794fc2') 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" }