diff options
author | Anton Kudelin | 2022-08-25 11:55:31 +0300 |
---|---|---|
committer | Anton Kudelin | 2022-08-25 11:55:31 +0300 |
commit | f4152943098d9bade6df80a215dc7da210bc2392 (patch) | |
tree | 68bf9f7a335bdba5ef1c460501093ef203b6699c /PKGBUILD | |
parent | b46ddd90175325399c73a5d3abc8e016dc035a1a (diff) | |
download | aur-combblas.tar.gz |
updpkg: 2.0.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 12 insertions, 21 deletions
@@ -5,31 +5,22 @@ pkgname=combblas _PkgName=CombBLAS -pkgver=1.6.2+r4666 -pkgrel=2 +pkgver=2.0.0 +pkgrel=1 pkgdesc="A library offering a set of linear algebra primitives for graph analytics" arch=('x86_64') url="https://github.com/PASSIONLab/CombBLAS" license=("BSD") depends=('openmpi') -makedepends=('cmake' 'git') -source=("git+$url.git") -sha256sums=('SKIP') - -pkgver() { - cd "$srcdir/$_PkgName" - printf "1.6.2+r%s" "$(git rev-list --count HEAD)" -} - -prepare() { - mkdir build -} +makedepends=('cmake') +source=("$url/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('632a94201a042a2a9aa86803f50ee38b7bf0aa1cfef6ba0eb34ea4007f79a679') build() { - cd build - + mkdir -p "$srcdir/build" + cd "$srcdir/build" # Some tests are computationally heavy MPI stuff, so avoid them - cmake ../$_PkgName \ + cmake ../$_PkgName-$pkgver \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_TESTING=OFF @@ -37,19 +28,19 @@ build() { } package() { - cd build + cd "$srcdir/build" make DESTDIR="$pkgdir" install # Remove OS X leftover files find "$pkgdir" -name "*.DS_Store" -delete find "$pkgdir" -name "._*" -delete - install -Dm644 "$srcdir/$_PkgName/LICENSE" \ + install -Dm644 ../$_PkgName-$pkgver/LICENSE \ -t "$pkgdir/usr/share/licenses/$pkgname" # Add extra headers - install -Dm644 "$srcdir/$_PkgName"/Applications/*.h \ + install -Dm644 ../$_PkgName-$pkgver/Applications/*.h \ -t "$pkgdir/usr/include/CombBLAS/Applications" - install -Dm644 "$srcdir/$_PkgName"/Applications/BipartiteMatchings/*.h \ + install -Dm644 ../$_PkgName-$pkgver/Applications/BipartiteMatchings/*.h \ -t "$pkgdir/usr/include/CombBLAS/Applications/BipartiteMatchings" } |