2015-07-25 18:08:40 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Ronald van Haren <ronald.archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2016-09-25 15:32:28 +00:00
|
|
|
# - drop intel-tbb depend, remove TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB
|
2015-07-25 18:08:40 +00:00
|
|
|
|
|
|
|
pkgname=suitesparse
|
2018-07-09 12:24:57 +00:00
|
|
|
pkgver=5.3.0
|
2017-01-04 00:52:05 +00:00
|
|
|
pkgrel=1
|
2015-07-25 18:08:40 +00:00
|
|
|
pkgdesc="A collection of sparse matrix libraries"
|
2015-11-27 10:49:44 +00:00
|
|
|
url="http://faculty.cse.tamu.edu/davis/suitesparse.html"
|
2017-12-14 01:17:00 +00:00
|
|
|
arch=('x86_64')
|
2015-07-25 18:08:40 +00:00
|
|
|
conflicts=('umfpack')
|
|
|
|
provides=('umfpack')
|
|
|
|
replaces=('umfpack')
|
2016-10-12 12:32:55 +00:00
|
|
|
depends=('metis' 'lapack')
|
2016-09-25 15:32:28 +00:00
|
|
|
makedepends=('gcc-fortran' 'cmake' 'chrpath')
|
2015-07-25 18:08:40 +00:00
|
|
|
license=('GPL')
|
|
|
|
options=('staticlibs')
|
2018-07-09 12:24:57 +00:00
|
|
|
source=("http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-$pkgver.tar.gz"
|
|
|
|
suitesparse-no-demo.patch)
|
|
|
|
sha1sums=('2c484c8dfacfbb46b1af00c187e369c7a85d2ede'
|
|
|
|
'2737ae324e50d3f3941619fbc64ba6e0a8d6993e')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
patch -p0 -i suitesparse-no-demo.patch # Don't run test application at build time
|
|
|
|
}
|
2015-07-25 18:08:40 +00:00
|
|
|
|
|
|
|
build() {
|
2017-12-14 01:17:00 +00:00
|
|
|
cd SuiteSparse
|
2016-09-25 15:32:28 +00:00
|
|
|
|
2016-10-12 12:32:55 +00:00
|
|
|
BLAS=-lblas MY_METIS_LIB=/usr/lib/libmetis.so make
|
2015-07-25 18:08:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
package() {
|
2017-12-14 01:17:00 +00:00
|
|
|
cd SuiteSparse
|
2016-10-12 12:32:55 +00:00
|
|
|
install -dm755 "${pkgdir}"/usr/{include,lib}
|
2016-09-25 15:32:28 +00:00
|
|
|
|
2016-10-12 12:32:55 +00:00
|
|
|
BLAS=-lblas MY_METIS_LIB=/usr/lib/libmetis.so \
|
|
|
|
make INSTALL_LIB="${pkgdir}"/usr/lib INSTALL_INCLUDE="${pkgdir}"/usr/include install
|
2015-07-25 18:08:40 +00:00
|
|
|
|
2016-09-25 15:32:28 +00:00
|
|
|
# fix RPATH
|
|
|
|
chrpath -d "$pkgdir"/usr/lib/*
|
2015-07-25 18:08:40 +00:00
|
|
|
}
|