Date: Sunday, June 17, 2018 @ 12:56:05 Author: felixonmars Revision: 343474
upgpkg: openblas 0.3.0-2 provide also support for -lopenblas (FS#58925) Modified: openblas/trunk/PKGBUILD ----------+ PKGBUILD | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-06-17 12:53:52 UTC (rev 343473) +++ PKGBUILD 2018-06-17 12:56:05 UTC (rev 343474) @@ -5,7 +5,7 @@ pkgname=openblas _pkgname=OpenBLAS pkgver=0.3.0 -pkgrel=1 +pkgrel=2 pkgdesc="An optimized BLAS library based on GotoBLAS2 1.13 BSD" arch=('x86_64') url="http://www.openblas.net/" @@ -22,21 +22,21 @@ 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 + NUM_THREADS=64 MAJOR_VERSION=3 libs shared } package() { cd "$srcdir/$_pkgname-$pkgver" - make PREFIX="$pkgdir/usr" NUM_THREADS=64 LIBPREFIX=libblas MAJOR_VERSION=3 install + make PREFIX="$pkgdir/usr" NUM_THREADS=64 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 + ln -sf libopenblasp-r$pkgver.dev.so libblas.so + ln -sf libopenblasp-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" + sed -i -e "s%$pkgdir%%" "$pkgdir/usr/lib/pkgconfig/openblas.pc" rmdir "$pkgdir"/usr/bin }