* update suitesparse to 7.8.2-1

This commit is contained in:
Alexander Baldeck 2024-10-06 12:05:14 +02:00
parent 46550b0caf
commit 3b8d79a8ba
3 changed files with 70 additions and 10 deletions

32
suitesparse/.SRCINFO Normal file
View File

@ -0,0 +1,32 @@
pkgbase = suitesparse
pkgdesc = A collection of sparse matrix libraries
pkgver = 7.8.2
pkgrel = 1
url = http://faculty.cse.tamu.edu/davis/suitesparse.html
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = GPL
makedepends = cmake
makedepends = gcc-fortran
makedepends = git
depends = blas
depends = gcc-libs
depends = glibc
depends = gmp
depends = lapack
depends = mpfr
replaces = suitesparse64<7.1.0
source = git+https://github.com/DrTimothyAldenDavis/SuiteSparse#tag=v7.8.2
source = ppc32.patch
sha256sums = 92645255bcfeaab9ad32c7de8b3d8804808484f18ff9f3e6c432e1132147b579
sha256sums = fe530b269842452aae6a76f3930b5355464a56ca1747b1bb8861f9751915557b
pkgname = suitesparse
pkgname = suitesparse-graphblas
pkgdesc = Graph algorithms in the language of linear algebra
depends = gcc-libs
depends = glibc

View File

@ -0,0 +1,6 @@
[suitesparse]
source = 'github'
github = 'DrTimothyAldenDavis/SuiteSparse'
use_max_tag = true
prefix = 'v'
exclude_regex = '.*(beta|rc).*'

View File

@ -2,8 +2,10 @@
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Ronald van Haren <ronald.archlinux.org>
pkgname=suitesparse
pkgver=7.7.0
pkgbase=suitesparse
pkgname=(suitesparse
suitesparse-graphblas)
pkgver=7.8.2
pkgrel=1
pkgdesc='A collection of sparse matrix libraries'
url='http://faculty.cse.tamu.edu/davis/suitesparse.html'
@ -15,22 +17,27 @@ depends=(blas
lapack
mpfr)
makedepends=(cmake
gcc-fortran)
gcc-fortran
git)
replaces=('suitesparse64<7.1.0')
license=(GPL)
source=(https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v$pkgver/$pkgname-$pkgver.tar.gz
source=(git+https://github.com/DrTimothyAldenDavis/SuiteSparse#tag=v$pkgver
ppc32.patch)
sha256sums=('529b067f5d80981f45ddf6766627b8fc5af619822f068f342aab776e683df4f3'
sha256sums=('92645255bcfeaab9ad32c7de8b3d8804808484f18ff9f3e6c432e1132147b579'
'fe530b269842452aae6a76f3930b5355464a56ca1747b1bb8861f9751915557b')
case "${CARCH}" in
powerpc64) options=(!lto) ;;
esac
prepare() {
cd SuiteSparse-$pkgver
# Fix 32bit powerpc
cd SuiteSparse
# Fix 32bit powerpc
patch -Np1 -i ${srcdir}/ppc32.patch
}
build() {
cd SuiteSparse-$pkgver
cd SuiteSparse
CMAKE_OPTIONS="-DBLA_VENDOR=Generic \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
@ -38,7 +45,22 @@ build() {
make
}
package() {
cd SuiteSparse-$pkgver
package_suitesparse() {
cd SuiteSparse
DESTDIR="$pkgdir" make install
rm -r "$pkgdir"/usr/lib/lib{graphblas,lagraph,lagraphx}.so* \
"$pkgdir"/usr/include/suitesparse/{GraphBLAS,LAGraph,LAGraphX}.h \
"$pkgdir"/usr/lib/cmake/{GraphBLAS,LAGraph} \
"$pkgdir"/usr/lib/pkgconfig/{GraphBLAS,LAGraph}.pc
}
package_suitesparse-graphblas() {
pkgdesc='Graph algorithms in the language of linear algebra'
depends=(gcc-libs
glibc)
cd SuiteSparse
DESTDIR="$pkgdir" make install -C GraphBLAS
DESTDIR="$pkgdir" make install -C LAGraph
}