[arch-commits] Commit in superlu/trunk (PKGBUILD)

Balló György bgyorgy at archlinux.org
Fri Apr 30 21:08:13 UTC 2021


    Date: Friday, April 30, 2021 @ 21:08:12
  Author: bgyorgy
Revision: 925412

Minor changes

Modified:
  superlu/trunk/PKGBUILD

----------+
 PKGBUILD |   35 ++++++++++++++---------------------
 1 file changed, 14 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-30 21:00:46 UTC (rev 925411)
+++ PKGBUILD	2021-04-30 21:08:12 UTC (rev 925412)
@@ -6,37 +6,30 @@
 pkgname=superlu
 pkgver=5.2.2
 pkgrel=2
-pkgdesc="Set of subroutines to solve a sparse linear system"
-arch=(x86_64)
-url="https://github.com/xiaoyeli/superlu/"
-license=(BSD)
-depends=(blas)
-makedepends=(cmake gcc-fortran)
+pkgdesc='Set of subroutines to solve a sparse linear system'
+arch=('x86_64')
+url='https://github.com/xiaoyeli/superlu/'
+license=('BSD')
+depends=('blas')
+makedepends=('cmake' 'gcc-fortran' 'ninja')
 source=("https://github.com/xiaoyeli/$pkgname/archive/v${pkgver}/$pkgname-$pkgver.tar.gz")
 sha256sums=('470334a72ba637578e34057f46948495e601a5988a602604f5576367e606a28c')
 
-prepare() {
-  [[ -d build ]] || mkdir build
-}
-
 build() {
-  cd build
-  cmake -G "Unix Makefiles" ../$pkgname-$pkgver/ \
-    -DCMAKE_INSTALL_PREFIX=/usr \
+  cmake -S $pkgname-$pkgver -B build -G Ninja \
+    -DCMAKE_INSTALL_PREFIX='/usr' \
     -DBUILD_SHARED_LIBS:BOOL=ON \
     -Denable_internal_blaslib:BOOL=OFF \
     -DCMAKE_INSTALL_INCLUDEDIR:PATH=include/superlu/
-  make
+  cmake --build build
 }
 
-check() {
-  cd build
-  make test
+check(){
+  ctest --test-dir build
 }
 
 package() {
-  cd build
-  make DESTDIR="$pkgdir" install
-  install -Dm644 ../$pkgname-$pkgver/DOC/ug.pdf "$pkgdir/usr/share/doc/$pkgname/ug.pdf"
-  install -Dm644 ../$pkgname-$pkgver/License.txt "$pkgdir/usr/share/licenses/$pkgname/License.txt"
+  DESTDIR="$pkgdir" cmake --install build
+  install -Dm644 $pkgname-$pkgver/DOC/ug.pdf "$pkgdir/usr/share/doc/$pkgname/ug.pdf"
+  install -Dm644 $pkgname-$pkgver/License.txt "$pkgdir/usr/share/licenses/$pkgname/License.txt"
 }



More information about the arch-commits mailing list