[arch-commits] Commit in suitesparse/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Wed Oct 12 09:26:20 UTC 2016


    Date: Wednesday, October 12, 2016 @ 09:26:20
  Author: arojas
Revision: 278476

Use system metis (FS#50893)

Modified:
  suitesparse/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-12 09:14:36 UTC (rev 278475)
+++ PKGBUILD	2016-10-12 09:26:20 UTC (rev 278476)
@@ -3,7 +3,7 @@
 
 pkgname=suitesparse
 pkgver=4.5.3
-pkgrel=1
+pkgrel=2
 pkgdesc="A collection of sparse matrix libraries"
 url="http://faculty.cse.tamu.edu/davis/suitesparse.html"
 arch=('i686' 'x86_64')
@@ -10,7 +10,7 @@
 conflicts=('umfpack')
 provides=('umfpack')
 replaces=('umfpack')
-depends=('blas' 'lapack' 'intel-tbb')
+depends=('metis' 'lapack' 'intel-tbb')
 makedepends=('gcc-fortran' 'cmake' 'chrpath')
 license=('GPL')
 options=('staticlibs')
@@ -27,18 +27,14 @@
 build() {
    cd "$srcdir"/SuiteSparse
 
-   BLAS=-lblas TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB make
+   BLAS=-lblas TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB 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 TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB make INSTALL_LIB="${pkgdir}"/usr/lib INSTALL_INCLUDE="${pkgdir}"/usr/include install
 
    # fix RPATH



More information about the arch-commits mailing list