mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-10-09 22:41:09 +02:00
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=lapack
|
|
pkgver=3.7.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="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
|
|
}
|
|
|
|
md5sums="697bb8d67c7d336a0f339cc9dd0fa72f lapack-3.7.0.tgz"
|
|
sha256sums="ed967e4307e986474ab02eb810eed1d1adc73f5e1e3bc78fb009f6fe766db3be lapack-3.7.0.tgz"
|
|
sha512sums="e4f4c7d0ba8a096eeb813160c6dbcdd535647df6b2ad5beac9181908158956b31d1a9554ec9b9836fd44fe7404c1f377b297cbb20d744f20d70e357fd246c91b lapack-3.7.0.tgz"
|