diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..927ab5557b95 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = hashclash-cuda-git + pkgdesc = Project HashClash - MD5 & SHA-1 cryptanalysis with CUDA support + pkgver = r53.0df53bb + pkgrel = 1 + url = https://github.com/cr-marcstevens/hashclash + arch = x86_64 + license = MIT + makedepends = git + makedepends = boost + depends = boost-libs + depends = cuda + provides = hashclash + conflicts = hashclash + source = hashclash::git+https://github.com/cr-marcstevens/hashclash + md5sums = SKIP + +pkgname = hashclash-cuda-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..577730f3aad5 --- /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/* +} |