blob: 1a7409e34eba1d129a7c7fca2e4cc2100fd44fed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# 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"
|