aports/testing/crunch/APKBUILD
Fabian Affolter 0389a26d3b testing/crunch: new aport
Crunch is a wordlist generator where you can specify a standard
character set or a character set you specify. crunch can generate
all possible combinations and permutations.

Website: http://sourceforge.net/projects/crunch-wordlist/
2013-03-04 09:50:13 +00:00

42 lines
955 B
Plaintext

# 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"