[arch-commits] Commit in openblas/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat May 26 04:04:16 UTC 2018


    Date: Saturday, May 26, 2018 @ 04:04:15
  Author: felixonmars
Revision: 329654

archrelease: copy trunk to community-testing-x86_64

Added:
  openblas/repos/community-testing-x86_64/
  openblas/repos/community-testing-x86_64/PKGBUILD
    (from rev 329653, openblas/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: openblas/repos/community-testing-x86_64/PKGBUILD (from rev 329653, openblas/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2018-05-26 04:04:15 UTC (rev 329654)
@@ -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.3.0
+pkgrel=1
+pkgdesc="An optimized BLAS library based on GotoBLAS2 1.13 BSD"
+arch=('x86_64')
+url="http://www.openblas.net/"
+license=('BSD')
+depends=('gcc-libs')
+makedepends=('perl' 'gcc-fortran')
+provides=('blas=3.8.0')
+conflicts=('blas')
+source=(${_pkgname}-v${pkgver}.tar.gz::https://github.com/xianyi/OpenBLAS/archive/v${pkgver}.tar.gz)
+sha512sums=('6a982d2adc13febc162d5c0077cedc116c771409ee1dbb651da6a073e5f6a439e1d0eba0349b3b2e506b274d3014adbf48fc96625ed942a61a54a0c936576b89')
+
+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.dev.so libblas.so
+  ln -sf libblasp-r$pkgver.dev.so libblas.so.3
+  sed -i -e "s%$pkgdir%%" "$pkgdir/usr/lib/cmake/openblas/OpenBLASConfig.cmake"
+  sed -i -e "s%$pkgdir%%" -e "s/-lopenblas/-lblas/g" "$pkgdir/usr/lib/pkgconfig/openblas.pc"
+
+  rmdir "$pkgdir"/usr/bin
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list