2020-04-26 20:00:27 +00:00
|
|
|
# Maintainer: Ronald van Haren <ronald.archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - patch from debian to link with libatomic
|
|
|
|
|
|
|
|
pkgname=suitesparse
|
2021-05-17 12:20:58 +00:00
|
|
|
pkgver=5.10.0
|
2020-07-15 13:43:31 +00:00
|
|
|
pkgrel=1
|
2020-04-26 20:00:27 +00:00
|
|
|
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')
|
2020-07-03 21:39:50 +00:00
|
|
|
depends=('metis' 'lapack' 'tbb' 'mpfr')
|
2020-04-26 20:00:27 +00:00
|
|
|
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
|
|
|
|
libatomic.patch)
|
2021-05-17 12:20:58 +00:00
|
|
|
sha256sums=('4bcc974901c0173acf80c41ee0fd779eb7dce2871d4afa24a5d15b1a468f93e5'
|
2020-07-03 21:39:50 +00:00
|
|
|
'409b32e546ec4936d0d88e39c59ee68dfd9f630d8c454ce1e3d58243df7ad396'
|
2020-04-26 20:00:27 +00:00
|
|
|
'b91e5ee92c027a5b216debccee2d37712b31a4fb2a544d7721060ccf2f60a7da')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd SuiteSparse-$pkgver
|
2020-07-03 21:39:50 +00:00
|
|
|
patch -p1 -i ../suitesparse-no-demo.patch # Don't run demo
|
2020-04-26 20:00:27 +00:00
|
|
|
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && patch -p1 -i ../libatomic.patch || true
|
|
|
|
}
|
|
|
|
|
|
|
|
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/*
|
|
|
|
}
|
|
|
|
|