blob: 1b34835f38de0da25375017d440070fa88335d14 (
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
48
49
50
51
52
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
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"
|