1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-25 12:40:30 +01:00

Add 'hashclash-git/' from commit '84675c66cdc3248336b51fa13765ba3cbcd048e2'

git-subtree-dir: hashclash-git
git-subtree-mainline: 39e8046f5e
git-subtree-split: 84675c66cd
This commit is contained in:
2024-03-24 18:09:38 +01:00
2 changed files with 53 additions and 0 deletions

17
hashclash-git/.SRCINFO Normal file
View File

@@ -0,0 +1,17 @@
pkgbase = hashclash-git
pkgdesc = Project HashClash - MD5 & SHA-1 cryptanalysis
pkgver = r46.d833657
pkgrel = 1
url = https://github.com/cr-marcstevens/hashclash
arch = x86_64
license = MIT
makedepends = git
makedepends = boost
depends = boost-libs
provides = hashclash
conflicts = hashclash
source = hashclash::git+https://github.com/cr-marcstevens/hashclash
md5sums = SKIP
pkgname = hashclash-git

36
hashclash-git/PKGBUILD Normal file
View File

@@ -0,0 +1,36 @@
# Maintainer: Bert Peters <bert@bertptrs.nl>
pkgname=hashclash-git
pkgver=r46.d833657
pkgrel=1
pkgdesc="Project HashClash - MD5 & SHA-1 cryptanalysis "
arch=(x86_64)
url="https://github.com/cr-marcstevens/hashclash"
license=('MIT')
depends=(boost-libs)
makedepends=('git' 'boost')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-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
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/*
}