Date: Saturday, April 15, 2023 @ 21:28:56
  Author: arojas
Revision: 1446211

archrelease: copy trunk to community-staging-x86_64

Added:
  superlu/repos/community-staging-x86_64/
  superlu/repos/community-staging-x86_64/PKGBUILD
    (from rev 1446210, superlu/trunk/PKGBUILD)

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

Copied: superlu/repos/community-staging-x86_64/PKGBUILD (from rev 1446210, 
superlu/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-04-15 21:28:56 UTC (rev 1446211)
@@ -0,0 +1,35 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Joey Dumont <[email protected]>
+# Contributor: Giuseppe Borzi <[email protected]>
+# Contributor: Stefan Paquay <[email protected]>
+
+pkgname=superlu
+pkgver=6.0.0
+pkgrel=1
+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=('5c199eac2dc57092c337cfea7e422053e8f8229f24e029825b0950edd1d17e8e')
+
+build() {
+  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/
+  cmake --build build
+}
+
+check(){
+  ctest --test-dir build
+}
+
+package() {
+  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"
+}

Reply via email to