Browse Source

[trunk] -> [testing] 'suitesparse-5.10.1-1.1' add

master
Dudemanguy 2 months ago
parent
commit
fe95bd31d4
Signed by: Dudemanguy GPG Key ID: 4003D2EF625D6492
  1. 2
      suitesparse/trunk/PKGBUILD
  2. 42
      suitesparse/x86_64/testing/PKGBUILD
  3. 11
      suitesparse/x86_64/testing/suitesparse-no-demo.patch

2
suitesparse/trunk/PKGBUILD

@ -2,7 +2,7 @@
pkgname=suitesparse
pkgver=5.10.1
pkgrel=1
pkgrel=1.1
pkgdesc="A collection of sparse matrix libraries"
url="http://faculty.cse.tamu.edu/davis/suitesparse.html"
arch=('x86_64')

42
suitesparse/x86_64/testing/PKGBUILD

@ -0,0 +1,42 @@
# Maintainer: Ronald van Haren <ronald.archlinux.org>
pkgname=suitesparse
pkgver=5.10.1
pkgrel=1.1
pkgdesc="A collection of sparse matrix libraries"
url="http://faculty.cse.tamu.edu/davis/suitesparse.html"
arch=('x86_64')
conflicts=('umfpack')
provides=('umfpack')
replaces=('umfpack')
depends=('metis' 'lapack' 'tbb' 'mpfr')
makedepends=('gcc-fortran' 'cmake' 'chrpath')
license=('GPL')
options=('staticlibs')
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v${pkgver}.tar.gz"
suitesparse-no-demo.patch)
sha256sums=('acb4d1045f48a237e70294b950153e48dce5b5f9ca8190e86c2b8c54ce00a7ee'
'409b32e546ec4936d0d88e39c59ee68dfd9f630d8c454ce1e3d58243df7ad396')
prepare() {
cd SuiteSparse-$pkgver
patch -p1 -i ../suitesparse-no-demo.patch # Don't run demo
}
build() {
cd SuiteSparse-$pkgver
BLAS=-lblas LAPACK=-llapack TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB MY_METIS_LIB=/usr/lib/libmetis.so make
}
package() {
cd SuiteSparse-$pkgver
install -dm755 "${pkgdir}"/usr/{include,lib}
BLAS=-lblas LAPACK=-llapack TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB MY_METIS_LIB=/usr/lib/libmetis.so \
make INSTALL_LIB="${pkgdir}"/usr/lib INSTALL_INCLUDE="${pkgdir}"/usr/include install
# fix RPATH
chrpath -d "$pkgdir"/usr/lib/*
}

11
suitesparse/x86_64/testing/suitesparse-no-demo.patch

@ -0,0 +1,11 @@
--- SuiteSparse-5.6.0/Makefile.orig 2019-11-05 22:37:26.086135974 +0000
+++ SuiteSparse-5.6.0/Makefile 2019-11-05 22:37:37.549632429 +0000
@@ -16,7 +16,7 @@
# installs all libraries SuiteSparse/lib.
go: metis
( cd SuiteSparse_config && $(MAKE) )
- ( cd Mongoose && $(MAKE) CMAKE_OPTIONS='$(CMAKE_OPTIONS)' )
+ ( cd Mongoose && $(MAKE) library CMAKE_OPTIONS='$(CMAKE_OPTIONS)' )
( cd AMD && $(MAKE) )
( cd BTF && $(MAKE) )
( cd CAMD && $(MAKE) )
Loading…
Cancel
Save