blob: 48b18f67a2acf2832d065bf170b0a054682a6e4f (
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
34
35
36
37
|
pkgname=hashclash-cuda-git
pkgver=r104.2969e0c
pkgrel=2
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%-cuda-git}"
# Git, no tags available
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
# the default env variables were causing problems, let configure detect them
unset CXXFLAGS CFLAGS
cd "$srcdir/${pkgname%-cuda-git}"
autoreconf --install
./configure --prefix=/usr --with-cuda=/opt/cuda
make -j4
}
package() {
cd "$srcdir/${pkgname%-cuda-git}"
make DESTDIR="$pkgdir/" install
install -D 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/*
}
|