summaryrefslogtreecommitdiffstats
path: root/testing/crunch/APKBUILD
blob: 9db89b13940f70893f2a7b8eea6cfeb6b15f1fcb (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
39
40
41
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=crunch
pkgver=3.4
pkgrel=0
pkgdesc="A wordlist generator"
url="http://sourceforge.net/projects/crunch-wordlist/"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/crunch-wordlist/crunch-wordlist/$pkgname-$pkgver.tgz
	crunch-3.4-destdir.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p2 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" geninstall || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="3f658a60d8227025df12cfb4ff4b9e15  crunch-3.4.tgz
a75466c9dae86223f913f622208eef86  crunch-3.4-destdir.patch"