# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=lapack pkgver=3.6.1 pkgrel=0 pkgdesc="Linear Algebra PACKage" url="http://www.netlib.org/lapack" arch="all" license="custom" depends="" depends_dev="" makedepends="$depends_dev gfortran cmake" install="" subpackages="$pkgname-dev" source="http://www.netlib.org/${pkgname}/${pkgname}-${pkgver}.tgz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done sed -e 's|/CMAKE/|/cmake/|' -i CBLAS/CMakeLists.txt } build() { cd "$_builddir" 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" make DESTDIR="$pkgdir" install } md5sums="421b2cb72e15f237e144428f9c460ee0 lapack-3.6.1.tgz" sha256sums="888a50d787a9d828074db581c80b2d22bdb91435a673b1bf6cd6eb51aa50d1de lapack-3.6.1.tgz" sha512sums="2c0af80f6082283395d9c6dc0a463b5a291d7bda3bc3aa68b8f2c7405bfdfac9e4ae417d156da75aa6ed0d90765d0c2ee30bd87ca13ced3c29f8f065038203a1 lapack-3.6.1.tgz"