aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-12-05 20:57:16 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-12-05 21:38:09 +0100
commit5fface46f57a44fb9237b2c949c572edced578db (patch)
treee1ff032b2024ebde1bbae11dfaa22a542182b242
parentd0a6b43babaac3bda7f53ab6da230b7d6d9f1acf (diff)
downloadaports-5fface46f57a44fb9237b2c949c572edced578db.tar.gz
aports-5fface46f57a44fb9237b2c949c572edced578db.tar.bz2
aports-5fface46f57a44fb9237b2c949c572edced578db.tar.xz
community/lapack: split blas and blas-dev subpackages.
-rw-r--r--community/lapack/APKBUILD45
1 files changed, 40 insertions, 5 deletions
diff --git a/community/lapack/APKBUILD b/community/lapack/APKBUILD
index 6cf5a1ad00..31a1964889 100644
--- a/community/lapack/APKBUILD
+++ b/community/lapack/APKBUILD
@@ -2,20 +2,22 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=lapack
pkgver=3.9.0
-pkgrel=0
+pkgrel=1
pkgdesc="Linear Algebra PACKage"
url="http://www.netlib.org/lapack"
arch="all"
license="custom"
options="!check" #no longer test available
makedepends="gfortran cmake"
-subpackages="$pkgname-dev"
-source="$pkgname-$pkgver.tar.gz::https://github.com/Reference-LAPACK/$pkgname/archive/v$pkgver.tar.gz"
-builddir="$srcdir"/$pkgname-$pkgver
+subpackages="
+ $pkgname-dev:_dev
+ blas
+ blas-dev
+ "
+source="lapack-$pkgver.tar.gz::https://github.com/Reference-LAPACK/lapack/archive/v$pkgver.tar.gz"
prepare() {
local i
- cd "$builddir"
sed -e 's|/CMAKE/|/cmake/|' -i CBLAS/CMakeLists.txt
mkdir sandbox
}
@@ -41,4 +43,37 @@ package() {
make DESTDIR="$pkgdir" install
}
+_dev() {
+ default_dev
+
+ mkdir -p "$pkgdir"/usr/lib \
+ "$pkgdir"/usr/include \
+ "$pkgdir"/usr/lib/pkgconfig \
+ "$pkgdir"/usr/lib/cmake
+
+ # Move development files meant for blas-dev
+ mv "$subpkgdir"/usr/lib/libblas.so \
+ "$subpkgdir"/usr/lib/libcblas.so \
+ "$pkgdir"/usr/lib
+
+ mv "$subpkgdir"/usr/lib/pkgconfig/*blas* \
+ "$pkgdir"/usr/lib/pkgconfig
+
+ mv "$subpkgdir"/usr/lib/cmake/*blas-* \
+ "$pkgdir"/usr/lib/cmake
+
+ mv "$subpkgdir"/usr/include/*blas* \
+ "$pkgdir"/usr/include
+}
+
+blas() {
+ depends=""
+ pkgdesc="The Basic Linear Algebra Subprograms library"
+
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/libblas.so.* \
+ "$pkgdir"/usr/lib/libcblas.so.* \
+ "$subpkgdir"/usr/lib
+}
+
sha512sums="424956ad941a60a4b71e0d451ad48db12a692f8a71a90f3ca7f71d6ecc1922f392746ea84df1c47a46577ed2db32e9e47ec44ad248207c5ac7da179becb712ef lapack-3.9.0.tar.gz"