2020-04-26 20:00:27 +00:00
|
|
|
# Maintainer: Ronald van Haren <ronald.archlinux.org>
|
2021-11-23 13:47:14 +00:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
2020-04-26 20:00:27 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - patch from debian to link with libatomic
|
|
|
|
|
|
|
|
pkgname=suitesparse
|
2021-05-25 13:11:01 +00:00
|
|
|
pkgver=5.10.1
|
2021-11-23 13:47:14 +00:00
|
|
|
pkgrel=2
|
|
|
|
pkgdesc='A collection of sparse matrix libraries'
|
|
|
|
url='http://faculty.cse.tamu.edu/davis/suitesparse.html'
|
|
|
|
arch=(x86_64)
|
|
|
|
depends=(metis lapack mpfr)
|
|
|
|
makedepends=(gcc-fortran cmake chrpath)
|
|
|
|
license=(GPL)
|
|
|
|
options=(staticlibs)
|
|
|
|
source=(https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v$pkgver/$pkgname-$pkgver.tar.gz
|
2020-04-26 20:00:27 +00:00
|
|
|
suitesparse-no-demo.patch
|
|
|
|
libatomic.patch)
|
2021-05-25 13:11:01 +00:00
|
|
|
sha256sums=('acb4d1045f48a237e70294b950153e48dce5b5f9ca8190e86c2b8c54ce00a7ee'
|
2020-07-03 21:39:50 +00:00
|
|
|
'409b32e546ec4936d0d88e39c59ee68dfd9f630d8c454ce1e3d58243df7ad396'
|
2021-10-16 23:19:38 +00:00
|
|
|
'e4dd670b8406483a7b69e8ba5bdd37b83f4d08c867fd86cc0b4f2dad623e07bc')
|
2020-04-26 20:00:27 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2021-11-23 13:47:14 +00:00
|
|
|
BLAS=-lblas LAPACK=-llapack MY_METIS_LIB=/usr/lib/libmetis.so make
|
2020-04-26 20:00:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd SuiteSparse-$pkgver
|
|
|
|
install -dm755 "${pkgdir}"/usr/{include,lib}
|
|
|
|
|
2021-11-23 13:47:14 +00:00
|
|
|
BLAS=-lblas LAPACK=-llapack MY_METIS_LIB=/usr/lib/libmetis.so \
|
2020-04-26 20:00:27 +00:00
|
|
|
make INSTALL_LIB="${pkgdir}"/usr/lib INSTALL_INCLUDE="${pkgdir}"/usr/include install
|
|
|
|
|
|
|
|
# fix RPATH
|
|
|
|
chrpath -d "$pkgdir"/usr/lib/*
|
|
|
|
}
|
|
|
|
|