mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-27 00:10:29 +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
|
pkgname=suitesparse
|
||||||
pkgver=4.5.3
|
pkgver=4.5.3
|
||||||
pkgrel=1
|
pkgrel=3
|
||||||
pkgdesc="A collection of sparse matrix libraries"
|
pkgdesc="A collection of sparse matrix libraries"
|
||||||
url="http://faculty.cse.tamu.edu/davis/suitesparse.html"
|
url="http://faculty.cse.tamu.edu/davis/suitesparse.html"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
conflicts=('umfpack')
|
conflicts=('umfpack')
|
||||||
provides=('umfpack')
|
provides=('umfpack')
|
||||||
replaces=('umfpack')
|
replaces=('umfpack')
|
||||||
depends=('blas' 'lapack')
|
depends=('metis' 'lapack')
|
||||||
makedepends=('gcc-fortran' 'cmake' 'chrpath')
|
makedepends=('gcc-fortran' 'cmake' 'chrpath')
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
options=('staticlibs')
|
options=('staticlibs')
|
||||||
|
@ -30,19 +30,16 @@ prepare() {
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir"/SuiteSparse
|
cd "$srcdir"/SuiteSparse
|
||||||
|
|
||||||
BLAS=-lblas make
|
BLAS=-lblas MY_METIS_LIB=/usr/lib/libmetis.so make
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}"/SuiteSparse
|
cd "${srcdir}"/SuiteSparse
|
||||||
install -dm755 "${pkgdir}"/usr
|
install -dm755 "${pkgdir}"/usr/{include,lib}
|
||||||
|
|
||||||
pushd metis-5.1.0
|
BLAS=-lblas MY_METIS_LIB=/usr/lib/libmetis.so \
|
||||||
make install DESTDIR="$pkgdir"
|
make INSTALL_LIB="${pkgdir}"/usr/lib INSTALL_INCLUDE="${pkgdir}"/usr/include install
|
||||||
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
|
|
||||||
|
|
||||||
# fix RPATH
|
# fix RPATH
|
||||||
chrpath -d "$pkgdir"/usr/lib/*
|
chrpath -d "$pkgdir"/usr/lib/*
|
||||||
|
|
Loading…
Reference in a new issue