summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fe7dc0cbcbf2da879d94ae31504736df35549b0e (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: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=crunch-git
pkgver=r4.g99f164f
pkgrel=1
pkgdesc="A wordlist generator where you can specify a standard character set or a character set you specify and generate all possible combinations and permutations"
arch=('i686' 'x86_64')
url="https://sourceforge.net/projects/crunch-wordlist/"
license=('GPL')
depends=('glibc')
makedepends=('git')
provides=("crunch=$pkgver")
conflicts=('crunch')
source=("git+https://git.code.sf.net/p/crunch-wordlist/code")
sha256sums=('SKIP')


pkgver() {
  cd "code"

  _rev=$(git rev-list --count --all)
  _hash=$(git rev-parse --short HEAD)
  printf "r%s.g%s" "$_rev" "$_hash"
}

build() {
  cd "code"

  make
}

package() {
  cd "code"

  install -Dm755 "crunch" -t "$pkgdir/usr/bin"
  install -Dm644 "charset.lst" -t "$pkgdir/usr/share/crunch"
  install -Dm644 "crunch.1" -t "$pkgdir/usr/share/man/man1"
}