mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
extra/suitesparse to 4.5.3-3
This commit is contained in:
parent
4b011249db
commit
ed5817dcba
1 changed files with 6 additions and 9 deletions
|
@ -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/*
|
||||
|
|
Loading…
Reference in a new issue