diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-02-01 19:20:01 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-02-02 15:52:07 +0000 |
commit | 876da76a959f98b49f3066fdef50bcfb3d34f9e1 (patch) | |
tree | 4cf014f65de12193365e0f96848e22ce3a705caf /testing/lapack | |
parent | 6a36cb975b40f22b604d93659dd3214ca01d747e (diff) | |
download | aports-876da76a959f98b49f3066fdef50bcfb3d34f9e1.tar.bz2 aports-876da76a959f98b49f3066fdef50bcfb3d34f9e1.tar.xz |
testing/lapack: new aport
Diffstat (limited to 'testing/lapack')
-rw-r--r-- | testing/lapack/APKBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/lapack/APKBUILD b/testing/lapack/APKBUILD new file mode 100644 index 0000000000..3c93dc1196 --- /dev/null +++ b/testing/lapack/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=lapack +pkgver=3.6.0 +pkgrel=0 +pkgdesc="Linear Algebra PACKage" +url="http://www.netlib.org/lapack" +arch="all" +license="custom" +depends="" +depends_dev="" +makedepends="$depends_dev gfortran cmake" +install="" +subpackages="$pkgname-dev" +source="http://www.netlib.org/${pkgname}/${pkgname}-${pkgver}.tgz" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + 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="f2f6c67134e851fe189bb3ca1fbb5101 lapack-3.6.0.tgz" +sha256sums="a9a0082c918fe14e377bbd570057616768dca76cbdc713457d8199aaa233ffc3 lapack-3.6.0.tgz" +sha512sums="bc50441d415ef8896dd7626d77c6104184b996e758704366288089f03d4c99d068e33153b0d13305310886017e5d2e716130f812a95cfcad36ef37fe20417ab8 lapack-3.6.0.tgz" |