summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBert Peters2019-10-10 09:44:15 +0200
committerBert Peters2019-10-10 09:44:15 +0200
commit2415c6d51b1080a74e0d9602357689b25e689625 (patch)
treed5dd0956bc1fb03f95676b777958d9e49338bfcc /PKGBUILD
downloadaur-2415c6d51b1080a74e0d9602357689b25e689625.tar.gz
Package with cuda support.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..577730f3aad
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Bert Peters <bert@bertptrs.nl>
+pkgname=hashclash-cuda-git
+pkgver=r53.0df53bb
+pkgrel=1
+pkgdesc="Project HashClash - MD5 & SHA-1 cryptanalysis with CUDA support"
+arch=(x86_64)
+url="https://github.com/cr-marcstevens/hashclash"
+license=('MIT')
+depends=(boost-libs cuda)
+makedepends=('git' 'boost')
+provides=(hashclash)
+conflicts=(hashclash)
+source=("${pkgname%-cuda-git}::git+https://github.com/cr-marcstevens/hashclash")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+
+ # Git, no tags available
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ autoreconf --install
+ ./configure --prefix=/usr --with-cuda=/opt/cuda
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ make DESTDIR="$pkgdir/" install
+ install -D "$srcdir/${pkgname%-git}/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -d "$pkgdir/usr/share/${pkgname%-git}/scripts"
+ install -Dt "$pkgdir/usr/share/${pkgname%-git}/scripts" -m755 scripts/*
+}