[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Tue May 8 19:54:51 UTC 2018
Date: Tuesday, May 8, 2018 @ 19:54:50
Author: felixonmars
Revision: 319703
addpkg: openblas 0.2.20-1
Added:
openblas/
openblas/repos/
openblas/trunk/
openblas/trunk/PKGBUILD
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Added: openblas/trunk/PKGBUILD
===================================================================
--- openblas/trunk/PKGBUILD (rev 0)
+++ openblas/trunk/PKGBUILD 2018-05-08 19:54:50 UTC (rev 319703)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Giuseppe Borzi <gborzi _AT_ ieee _DOT_ org>
+
+pkgname=openblas
+_pkgname=OpenBLAS
+pkgver=0.2.20
+pkgrel=1
+pkgdesc="An optimized BLAS library based on GotoBLAS2 1.13 BSD"
+arch=('i686' 'x86_64')
+url="http://www.openblas.net/"
+license=('BSD')
+depends=('gcc-libs')
+makedepends=('perl' 'gcc-fortran')
+provides=('blas=3.7.0')
+conflicts=('blas')
+source=(${_pkgname}-v${pkgver}.tar.gz::http://github.com/xianyi/OpenBLAS/archive/v${pkgver}.tar.gz)
+md5sums=('48637eb29f5b492b91459175dcc574b1')
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ make NO_STATIC=1 NO_LAPACK=1 NO_LAPACKE=1 NO_CBLAS=1 NO_AFFINITY=1 USE_OPENMP=1 \
+ CFLAGS="$CPPFLAGS $CFLAGS" DYNAMIC_ARCH=1 \
+ NUM_THREADS=64 LIBPREFIX=libblas MAJOR_VERSION=3 libs shared
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ make PREFIX="$pkgdir/usr" NUM_THREADS=64 LIBPREFIX=libblas MAJOR_VERSION=3 install
+ rm -f "$pkgdir/usr/include/cblas.h" "$pkgdir"/usr/include/lapacke*
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ cd "$pkgdir/usr/lib/"
+ ln -sf libblasp-r$pkgver.so libblas.so
+ ln -sf libblasp-r$pkgver.so libblas.so.3
+ sed -i -e "s%$pkgdir%%" "$pkgdir/usr/lib/cmake/openblas/OpenBLASConfig.cmake"
+ sed -i -e "s%$pkgdir%%" "$pkgdir/usr/lib/pkgconfig/openblas.pc"
+
+ rmdir "$pkgdir"/usr/bin
+}
+
+# vim:set ts=2 sw=2 et:
Property changes on: openblas/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list