Subject: [alpine-aports] [PATCH] testing/blas: new aport

From: Jose Maria Garcia <[email-masked]>
Date: Sat, 18 Nov 2017 11:48:24 +0100

http://www.netlib.org/blas/
BLAS (Basic Linear Algebra Subprograms)
---
 testing/blas/APKBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 testing/blas/APKBUILD

diff --git a/testing/blas/APKBUILD b/testing/blas/APKBUILD
new file mode 100644
index 0000000000..219243690b
--- /dev/null
+++ b/testing/blas/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Jose Maria Garcia <[email-masked]>
+# Maintainer: Jose Maria Garcia <[email-masked]>
+pkgname=blas
+_pkgname=lapack
+pkgver=3.8.0
+pkgrel=0
+pkgdesc="BLAS (Basic Linear Algebra Subprograms)"
+url="http://www.netlib.org/blas/"
+arch="all"
+license="BSD"
+depends=""
+makedepends="cmake gfortran"
+install=""
+subpackages="" #$pkgname-dev $pkgname-doc
+source="http://www.netlib.org/lapack/${_pkgname}-${pkgver}.tar.gz"
+builddir="$srcdir/${_pkgname}-${pkgver}/"
+
+build() {
+	cd "$builddir"
+	install -d build
+	cd build
+	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_WITH_TMG=ON \
+	    -DLAPACKE=ON \
+	    -DCBLAS=ON \
+	    -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
+	    -DBUILD_DEPRECATED=ON
+	make blas
+}
+
+package() {
+	cd "$builddir/build/BLAS/"
+	make DESTDIR="$pkgdir" install
+}
+
+sha512sums="17786cb7306fccdc9b4a242de7f64fc261ebe6a10b6ec55f519deb4cb673cb137e8742aa5698fd2dc52f1cd56d3bd116af3f593a01dcf6770c4dcc86c50b2a7f  lapack-3.8.0.tar.gz"
-- 
2.15.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---