# Maintainer: Joey Dumont # Contributor: Lucas Hermann Negri pkgname=armadillo pkgver=12.4.0 _pkgver=${pkgver/_/-} # 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' 'intel-mkl: Intel Math Kernel Library support') makedepends=('cmake') source=("http://downloads.sourceforge.net/sourceforge/arma/$pkgname-$_pkgver.tar.xz") install=armadillo.install sha512sums=('a9f8cd19384eed787787b9e189901a1800e6e1dd06917f4f13e8a215c83f317de3e5b0ae8625783f88d9a7b0ab25f5c7784ccf0493c08a9ee3ea7fdfbbe36195') 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" }