extra/suitesparse to 4.5.3-3

This commit is contained in:
Kevin Mihelich 2016-10-12 12:32:55 +00:00
parent 4b011249db
commit ed5817dcba

View file

@ -6,14 +6,14 @@
pkgname=suitesparse
pkgver=4.5.3
pkgrel=1
pkgrel=3
pkgdesc="A collection of sparse matrix libraries"
url="http://faculty.cse.tamu.edu/davis/suitesparse.html"
arch=('i686' 'x86_64')
conflicts=('umfpack')
provides=('umfpack')
replaces=('umfpack')
depends=('blas' 'lapack')
depends=('metis' 'lapack')
makedepends=('gcc-fortran' 'cmake' 'chrpath')
license=('GPL')
options=('staticlibs')
@ -30,19 +30,16 @@ prepare() {
build() {
cd "$srcdir"/SuiteSparse
BLAS=-lblas make
BLAS=-lblas MY_METIS_LIB=/usr/lib/libmetis.so make
}
package() {
cd "${srcdir}"/SuiteSparse
install -dm755 "${pkgdir}"/usr
install -dm755 "${pkgdir}"/usr/{include,lib}
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
BLAS=-lblas 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/*