diff --git a/suitesparse/.SRCINFO b/suitesparse/.SRCINFO new file mode 100644 index 0000000000..5e44fff3a9 --- /dev/null +++ b/suitesparse/.SRCINFO @@ -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 diff --git a/suitesparse/.nvchecker.toml b/suitesparse/.nvchecker.toml new file mode 100644 index 0000000000..9354a17fcf --- /dev/null +++ b/suitesparse/.nvchecker.toml @@ -0,0 +1,6 @@ +[suitesparse] +source = 'github' +github = 'DrTimothyAldenDavis/SuiteSparse' +use_max_tag = true +prefix = 'v' +exclude_regex = '.*(beta|rc).*' diff --git a/suitesparse/PKGBUILD b/suitesparse/PKGBUILD index aec231340d..b830c88590 100644 --- a/suitesparse/PKGBUILD +++ b/suitesparse/PKGBUILD @@ -2,8 +2,10 @@ # Maintainer: Antonio Rojas # Contributor: Ronald van Haren -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 }