summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b88ea5e9c9d436b600e82b02076552aaace69f99 (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
38
# Maintainer: Jojii <jojii@gmx.net>
pkgname=bruteforce-luks-git
pkgver=1.0.r46.a18694a
pkgrel=1
epoch=
pkgdesc="The bruteforce-luks git version"
arch=('i686' 'x86_64')
url="https://github.com/glv2/bruteforce-luks"
license=('GPL-3.0')
groups=()
depends=()
makedepends=(
    "git"
)

options=()
install=
changelog=
source=("git+$url")
md5sums=("SKIP")

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

build() {
	cd "$srcdir/bruteforce-luks"
	./autogen.sh
    ./configure
    make
}

package() {
	cd "$srcdir/bruteforce-luks"
    mkdir -p $pkgdir/usr/bin
    install -DT bruteforce-luks $pkgdir/usr/bin/bruteforce-luks
}