void-packages/srcpkgs/SuiteSparse/template
2021-11-10 12:31:11 +01:00

43 lines
1.2 KiB
Bash

# Template file for 'SuiteSparse'
pkgname=SuiteSparse
version=5.10.1
revision=1
make_build_args="BLAS=-lblas LAPACK=-llapack TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB"
hostmakedepends="cmake chrpath"
makedepends="tbb-devel libgomp-devel lapack-devel mpfr-devel"
short_desc="Suite of sparse matrix software"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="custom:multiple"
homepage="https://people.engr.tamu.edu/davis/suitesparse.html"
distfiles="https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/tags/v${version}.tar.gz"
checksum=acb4d1045f48a237e70294b950153e48dce5b5f9ca8190e86c2b8c54ce00a7ee
do_build() {
make config library $make_build_args JOBS=$XBPS_MAKEJOBS
}
do_check() {
make go $make_build_args LD_LIBRARY_PATH=$wrksrc/lib JOBS=$XBPS_MAKEJOBS
}
do_install() {
make install $make_build_args INSTALL=$DESTDIR/usr
vlicense LICENSE.txt
# remove invalid rpath
chrpath -d $DESTDIR/usr/lib/lib*.so
}
SuiteSparse-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
# do not vmove libmetis.so
vmove "usr/lib/lib[a-ln-z]*.so"
vmove "usr/lib/libmo*.so"
vmove usr/share/doc
}
}