PKGBUILDs/extra/suitesparse/PKGBUILD

50 lines
1.3 KiB
Bash
Raw Normal View History

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
2016-09-25 15:32:28 +00:00
pkgver=4.5.3
2015-07-25 18:08:40 +00:00
pkgrel=1
pkgdesc="A collection of sparse matrix libraries"
2015-11-27 10:49:44 +00:00
url="http://faculty.cse.tamu.edu/davis/suitesparse.html"
2015-07-25 18:08:40 +00:00
arch=('i686' 'x86_64')
conflicts=('umfpack')
provides=('umfpack')
replaces=('umfpack')
depends=('blas' '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')
2016-09-25 15:32:28 +00:00
source=("http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-$pkgver.tar.gz" suitesparse-link-tbb.patch)
sha1sums=('2403007be38266e3607edfbf3833bee7f6bcb0f1'
'4f0b3836e8c3c1ec5be01f988f136cee4a2cb936')
2015-07-25 18:08:40 +00:00
prepare() {
2016-09-25 15:32:28 +00:00
# Fix linking with intel-tbb
cd SuiteSparse
patch -p1 -i ../suitesparse-link-tbb.patch
2015-07-25 18:08:40 +00:00
}
build() {
cd "$srcdir"/SuiteSparse
2016-09-25 15:32:28 +00:00
BLAS=-lblas make
2015-07-25 18:08:40 +00:00
}
package() {
cd "${srcdir}"/SuiteSparse
2016-09-25 15:32:28 +00:00
install -dm755 "${pkgdir}"/usr
pushd metis-5.1.0
make install DESTDIR="$pkgdir"
mv "$pkgdir"/build/suitesparse/src/SuiteSparse/* "$pkgdir"/usr && rm -r "$pkgdir"/build
popd
BLAS=-lblas 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
}