aboutsummaryrefslogtreecommitdiffstats
path: root/community/lapack/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-25 08:17:44 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-25 08:17:44 +0000
commitab172600ceb4abf884f22af231ad44ec1fa9c227 (patch)
tree10f74f399097afa849ea930642bd8f34a5d9a19a /community/lapack/APKBUILD
parent0ba8cd0b26bc79feb0bc87fac61255a40eec17d5 (diff)
downloadaports-ab172600ceb4abf884f22af231ad44ec1fa9c227.tar.bz2
aports-ab172600ceb4abf884f22af231ad44ec1fa9c227.tar.xz
community/lapack: moved from testing
Diffstat (limited to 'community/lapack/APKBUILD')
-rw-r--r--community/lapack/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/community/lapack/APKBUILD b/community/lapack/APKBUILD
new file mode 100644
index 0000000000..8fe23b5269
--- /dev/null
+++ b/community/lapack/APKBUILD
@@ -0,0 +1,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"