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

Felix Yan felixonmars at archlinux.org
Tue Mar 23 23:43:29 UTC 2021


    Date: Tuesday, March 23, 2021 @ 23:43:28
  Author: felixonmars
Revision: 901387

archrelease: copy trunk to community-testing-x86_64

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

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

Copied: openblas/repos/community-testing-x86_64/PKGBUILD (from rev 901386, openblas/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-03-23 23:43:28 UTC (rev 901387)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Giuseppe Borzi <gborzi _AT_ ieee _DOT_ org>
+
+pkgname=openblas
+_pkgname=OpenBLAS
+pkgver=0.3.14
+pkgrel=1
+pkgdesc="An optimized BLAS library based on GotoBLAS2 1.13 BSD"
+arch=('x86_64')
+url="https://www.openblas.net/"
+license=('BSD')
+depends=('gcc-libs')
+makedepends=('perl' 'gcc-fortran')
+checkdepends=('cblas')
+provides=('blas=3.9.0')
+conflicts=('blas')
+source=(${_pkgname}-v${pkgver}.tar.gz::https://github.com/xianyi/OpenBLAS/archive/v${pkgver}.tar.gz)
+sha512sums=('c7d5947ada525a32bc6e97ff94272df9730fa5fb06102e06e80472baedc1a9119d82050cdaede192db15f816ae7143784d7801b61b64fab5b5cf97cdbd5e625e')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  make NO_STATIC=1 NO_LAPACK=1 NO_LAPACKE=1 NO_CBLAS=1 NO_AFFINITY=1 USE_OPENMP=1 \
+       CFLAGS="$CPPFLAGS $CFLAGS" TARGET=CORE2 DYNAMIC_ARCH=1 \
+       NUM_THREADS=64 MAJOR_VERSION=3 libs shared
+}
+
+check() {
+  cd $_pkgname-$pkgver
+  # TODO
+  #make CFLAGS="$CPPFLAGS $CFLAGS -lcblas" TARGET=CORE2 tests
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  make PREFIX="$pkgdir"/usr NUM_THREADS=64 MAJOR_VERSION=3 install
+  rm -f "$pkgdir"/usr/include/cblas.h "$pkgdir"/usr/include/lapack*
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  cd "$pkgdir"/usr/lib/
+  ln -s libopenblasp-r$pkgver.so libblas.so
+  ln -s libopenblasp-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
+  ln -s openblas.pc "$pkgdir"/usr/lib/pkgconfig/blas.pc
+
+  rmdir "$pkgdir"/usr/bin
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list