pkgname=hmat-oss pkgver=1.2.0 pkgrel=1 pkgdesc="A hierarchical matrix C/C++ library" license=('GPL') arch=('i686' 'x86_64') url="https://github.com/jeromerobert/hmat-oss" depends=('cblas' 'lapack') makedepends=('cmake') source=("https://github.com/jeromerobert/hmat-oss/archive/${pkgver}.tar.gz") sha1sums=('67ec6f26d0c66ba7c495e5c21d1ec701f43f0770') build() { cd $pkgname-$pkgver cmake -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_INCLUDE_DIR=/usr/include/hmat . make } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install }