mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=lapack
|
|
pkgver=3.8.0
|
|
pkgrel=0
|
|
pkgdesc="Linear Algebra PACKage"
|
|
url="http://www.netlib.org/lapack"
|
|
arch="all"
|
|
license="custom"
|
|
depends=""
|
|
makedepends="gfortran cmake"
|
|
install=""
|
|
subpackages="$pkgname-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/Reference-LAPACK/$pkgname/archive/v$pkgver.tar.gz"
|
|
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
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"/sandbox
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"/sandbox
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="17786cb7306fccdc9b4a242de7f64fc261ebe6a10b6ec55f519deb4cb673cb137e8742aa5698fd2dc52f1cd56d3bd116af3f593a01dcf6770c4dcc86c50b2a7f lapack-3.8.0.tar.gz"
|