aboutsummaryrefslogtreecommitdiffstats
path: root/community/lapack/APKBUILD
blob: d055a5c5a41531b742c1cc034c5a7f4cbc61a790 (plain) (blame)
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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=lapack
pkgver=3.7.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
	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
}

sha512sums="b97a08b35a094fdedec88ea81026baa501397f8ae27444cac83d0e9518df8ddb4359e34e61f993b7dc5f40bba54e35837682cde6bec6f7fcd5ffad4de71bd8fe  lapack-3.7.1.tgz"