mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
50 lines
1.5 KiB
Bash
50 lines
1.5 KiB
Bash
|
# Maintainer: Ronald van Haren <ronald.archlinux.org>
|
||
|
|
||
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||
|
# - patch from debian to link with libatomic
|
||
|
|
||
|
pkgname=suitesparse
|
||
|
pkgver=5.7.2
|
||
|
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' 'intel-tbb')
|
||
|
makedepends=('gcc-fortran' 'cmake' 'chrpath')
|
||
|
license=('GPL')
|
||
|
options=('staticlibs')
|
||
|
source=($pkgname-$pkgver.tar.gz::"https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v$pkgver.tar.gz"
|
||
|
suitesparse-no-demo.patch
|
||
|
libatomic.patch)
|
||
|
sha256sums=('fe3bc7c3bd1efdfa5cffffb5cebf021ff024c83b5daf0ab445429d3d741bd3ad'
|
||
|
'f80488bb076753d38ea21d207bd682bdc97e21220c733da025f518a5b7e8e030'
|
||
|
'b91e5ee92c027a5b216debccee2d37712b31a4fb2a544d7721060ccf2f60a7da')
|
||
|
|
||
|
prepare() {
|
||
|
cd SuiteSparse-$pkgver
|
||
|
patch -p1 -i ../suitesparse-no-demo.patch
|
||
|
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && patch -p1 -i ../libatomic.patch || true
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
cd SuiteSparse-$pkgver
|
||
|
|
||
|
BLAS=-lblas LAPACK=-llapack TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB MY_METIS_LIB=/usr/lib/libmetis.so make
|
||
|
}
|
||
|
|
||
|
|
||
|
package() {
|
||
|
cd SuiteSparse-$pkgver
|
||
|
install -dm755 "${pkgdir}"/usr/{include,lib}
|
||
|
|
||
|
BLAS=-lblas LAPACK=-llapack TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB 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/*
|
||
|
}
|
||
|
|