New package: SuiteSparse-5.10.1

This commit is contained in:
Gonzalo Tornaría 2021-08-30 22:34:53 -03:00 committed by Leah Neukirchen
parent c4e88a9e72
commit 64711d8cfa
3 changed files with 44 additions and 0 deletions

View file

@ -68,6 +68,7 @@ libppl.so.14 ppl-1.2_1
libppl_c.so.4 ppl-0.11_1
libstdc++.so.6 libstdc++-4.4.0_1
libssp.so.0 libssp-4.4.0_1
libcxsparse.so.3 SuiteSparse-5.10.1_1
libncurses.so.6 ncurses-libs-6.0_1 ignore
libncursesw.so.6 ncurses-libs-5.8_1 ignore
libtinfo.so.6 ncurses-libtinfo-libs-6.2_2

1
srcpkgs/SuiteSparse-devel Symbolic link
View file

@ -0,0 +1 @@
SuiteSparse

View file

@ -0,0 +1,42 @@
# 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
}
}