mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
45 lines
1.2 KiB
Bash
45 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=5.3.0
|
|
pkgrel=1
|
|
pkgdesc="A collection of sparse matrix libraries"
|
|
url="http://faculty.cse.tamu.edu/davis/suitesparse.html"
|
|
arch=('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-no-demo.patch)
|
|
sha1sums=('2c484c8dfacfbb46b1af00c187e369c7a85d2ede'
|
|
'2737ae324e50d3f3941619fbc64ba6e0a8d6993e')
|
|
|
|
prepare() {
|
|
patch -p0 -i suitesparse-no-demo.patch # Don't run test application at build time
|
|
}
|
|
|
|
build() {
|
|
cd SuiteSparse
|
|
|
|
BLAS=-lblas MY_METIS_LIB=/usr/lib/libmetis.so make
|
|
}
|
|
|
|
|
|
package() {
|
|
cd 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/*
|
|
}
|