# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=lapack pkgver=3.7.1 pkgrel=1 pkgdesc="Linear Algebra PACKage" url="http://www.netlib.org/lapack" arch="all" license="custom" depends="" makedepends="gfortran cmake" install="" subpackages="$pkgname-dev" source="http://www.netlib.org/${pkgname}/${pkgname}-${pkgver}.tgz" builddir="$srcdir"/$pkgname-$pkgver prepare() { local i cd "$builddir" sed -e 's|/CMAKE/|/cmake/|' -i CBLAS/CMakeLists.txt mkdir sandbox } build() { cd "$builddir"/sandbox cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_RPATH=ON \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_TESTING=OFF \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_Fortran_COMPILER=gfortran \ -DLAPACKE=ON \ -DCBLAS=ON \ -DBUILD_DEPRECATED=ON make } package() { cd "$builddir"/sandbox make DESTDIR="$pkgdir" install } sha512sums="b16063146626d2f67ae1456a660dbb93f42d8387cfebef1bc2681a35b5d21d53120fb74b52932373d2423cd7df39a7ae4bbfc992a71addd936bbdd051d4e2eb7 lapack-3.7.1.tgz"