mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
# $Id$
|
|
# Maintainer: Ronald van Haren <ronald.archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - drop intel-tbb depend, remove TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB
|
|
|
|
pkgname=suitesparse
|
|
pkgver=4.5.4
|
|
pkgrel=1
|
|
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=('metis' 'lapack')
|
|
makedepends=('gcc-fortran' 'cmake' 'chrpath')
|
|
license=('GPL')
|
|
options=('staticlibs')
|
|
source=("http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-$pkgver.tar.gz" suitesparse-link-tbb.patch)
|
|
sha1sums=('33fb47e3140f1dd8cae10847a9344439d4aa66b2'
|
|
'4f0b3836e8c3c1ec5be01f988f136cee4a2cb936')
|
|
|
|
prepare() {
|
|
# Fix linking with intel-tbb
|
|
cd SuiteSparse
|
|
patch -p1 -i ../suitesparse-link-tbb.patch
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir"/SuiteSparse
|
|
|
|
BLAS=-lblas MY_METIS_LIB=/usr/lib/libmetis.so make
|
|
}
|
|
|
|
|
|
package() {
|
|
cd "${srcdir}"/SuiteSparse
|
|
install -dm755 "${pkgdir}"/usr/{include,lib}
|
|
|
|
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/*
|
|
}
|