summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1663ca09aab66b8a032fe61ca61f6c2ffd99e774 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer jorge-barroso <jorge_barroso_11 at hotmail dot com>
# Contributor DanielNak <daniel@tee.cat>
# Library package author: Timothy A. Davis <Davis@tamu.edu>

_author=DrTimothyAldenDavis
_pkgname=GraphBLAS
pkgname=graphblas
pkgver=8.2.1
pkgrel=1
pkgdesc="A full implementation of the GraphBLAS standard (graphblas.org)"
arch=('any')
url="http://github.com/$_author/$_pkgname"
license=('APACHE')
depends=()
makedepends=('cmake')
provides=("$pkgname")
conflicts=("$pkgname")
# source=("http://faculty.cse.tamu.edu/$_author/$_pkgname/$_pkgname-$pkgver.tar.gz")
source=("https://github.com/$_author/$_pkgname/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('a4847751f20535e229ebcba6da2f66510414f01c23702c543bf0d89b5f5e8cfa')

build() {
	cd "$srcdir/$_pkgname-$pkgver"
	(( NJOB=$(nproc)-1 )) || NJOB=1
	make library JOBS=$NJOB CMAKE_OPTIONS=-DCMAKE_INSTALL_PREFIX=/usr
}

package(){
	cd "$srcdir/$_pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
	# install -Dm644 Doc/License.txt "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
	cd "$pkgdir/usr"
}