summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29e7bd5a4fd0242dc7c0da68b9be7ba0972f93b2 (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
# Maintainer: Aloxaf <aloxafx@gmail.com>
pkgname=bkcrack-git
pkgver=r38.50ab495
pkgrel=1
pkgdesc="Crack legacy zip encryption with Biham and Kocher's known plaintext attack."
arch=('x86_64')
url="https://github.com/kimci86/bkcrack"
license=('ZLIB')
depends=('gcc-libs')
makedepends=('git' 'cmake' 'doxygen')
provides=("bkcrack")
conflicts=("bkcrack")
source=('bkcrack::git+https://github.com/kimci86/bkcrack')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/bkcrack"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/bkcrack"
	cmake .
	make
}

package() {
	cd "$srcdir/bkcrack"
	make DESTDIR="$pkgdir/" install

	install -D "$pkgdir/usr/local/bkcrack" "$pkgdir/usr/bin/bkcrack"
	install -d "$pkgdir/usr/share/doc/bkcrack-git/html"
	install -D $pkgdir/usr/local/doc/html/* "$pkgdir/usr/share/doc/bkcrack-git/html"
	install -D "$pkgdir/usr/local/license.txt" "$pkgdir/usr/share/licenses/bkcrack-git/license.txt"

	rm -rdf "$pkgdir/usr/local"
}