blob: 8fe23b5269649557028209e23d3475a5b36d9732 (
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
|
# 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=""
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
}
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"
|