# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=suitesparse _pkgname=SuiteSparse pkgver=4.5.5 pkgrel=0 pkgdesc="A collection of sparse matrix libraries" url="http://faculty.cse.tamu.edu/davis/suitesparse.html" arch="all !s390x" license="GPL" depends_dev="openblas-dev" makedepends="$depends_dev" subpackages="$pkgname-dev $pkgname-doc" source="http://faculty.cse.tamu.edu/davis/$_pkgname/$_pkgname-$pkgver.tar.gz 0001-exclude-metis.patch 0002-remove-rpath.patch " builddir="$srcdir/$_pkgname" prepare() { cd "$builddir" # OpenBLAS provides also LAPACK. export LAPACK="-lopenblas" # gcc fails on internal error when using default -O3. export OPTIMIZATION="-O2" # Do not include the Partition module and METIS (it's optional and # Julia doesn't need it). export CFLAGS="$CFLAGS -DNPARTITION" rm -r metis-* default_prepare } build() { cd "$builddir" make library } package() { cd "$builddir" make install \ INSTALL="$pkgdir/usr" \ INSTALL_INCLUDE="$pkgdir/usr/include/$pkgname" \ INSTALL_DOC="$pkgdir/usr/share/doc/$pkgname" } sha512sums="4337c683027efca6c0800815587409db14db7d70df673451e307eb3ece5538815d06d90f3a831fa45071372f70b6f37eaa68fe951f69dbb52a5bfd84d2dc4913 SuiteSparse-4.5.5.tar.gz 0bdaed29c7770104eb94d9e60a42fe68b5643c8f958aba4cc6d7996888a83ae75a4e509d0c262264c49d5d9b1ca23a958cc71cfaa5e983b0008e65455a987cac 0001-exclude-metis.patch cd40b696515b26c95298b435a5111e582dc42c2fa2e8ef9889558467d375b1d19452838b9463df66958e73ddb0c8c0191936e3e952586a3c7d345edb08fa7e62 0002-remove-rpath.patch"