diff options
author | root <root@rshg054.dnsready.net> | 2012-03-20 00:01:23 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-03-20 00:01:23 +0000 |
commit | 99136e3a2e9f6f07a7ff08d5721bce354b853c8b (patch) | |
tree | 3cd677128a00bc9501f93e27e53ebba72f44cd52 /extra/suitesparse | |
parent | de5b6982e42f4a1e8b0537cfbc1b676e2a81f195 (diff) |
Tue Mar 20 00:01:23 UTC 2012
Diffstat (limited to 'extra/suitesparse')
-rw-r--r-- | extra/suitesparse/PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/extra/suitesparse/PKGBUILD b/extra/suitesparse/PKGBUILD new file mode 100644 index 000000000..ab9b16cd1 --- /dev/null +++ b/extra/suitesparse/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 153722 2012-03-18 17:12:55Z ronald $ +# Maintainer: Ronald van Haren <ronald.archlinux.org> + +pkgname=suitesparse +pkgver=3.7.0 +pkgrel=1 +pkgdesc="A collection of sparse matrix libraries" +url="http://www.cise.ufl.edu/research/sparse/SuiteSparse/" +arch=('i686' 'x86_64') +conflicts=('umfpack') +provides=('umfpack') +replaces=('umfpack') +depends=('blas' 'lapack') +makedepends=('gcc-fortran') +license=('GPL') +source=(http://www.cise.ufl.edu/research/sparse/SuiteSparse/SuiteSparse-$pkgver.tar.gz) +sha1sums=('d0eb24b43ee2f7def032e80eaa7a589f94f546fc') + +build() { + cd "$srcdir"/SuiteSparse + export CFLAGS=" ${CFLAGS} -DNPARTITION" + + make -C UFconfig/xerbla + make -C UFconfig + for _lib in AMD CAMD COLAMD BTF KLU LDL CCOLAMD UMFPACK CHOLMOD CXSparse SPQR; do + make -C ${_lib} library + done +} + + +package() { + cd "${srcdir}"/SuiteSparse + install -dm755 "${pkgdir}"/usr/{lib,include} + + for _lib in UFconfig AMD CAMD COLAMD BTF KLU LDL CCOLAMD UMFPACK CHOLMOD CXSparse SPQR; do + make -C ${_lib} INSTALL_LIB="${pkgdir}"/usr/lib INSTALL_INCLUDE="${pkgdir}"/usr/include install + done + + chmod 644 "${pkgdir}"/usr/include/*.{h,hpp} +} |