This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

crunch

By: Unknown47 on Aug 31st, 2011  |  syntax: None  |  size: 0.87 KB  |  views: 124  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=crunch
  2. pkgver=3.1
  3. pkgrel=1
  4. pkgdesc="A wordlist generator for all combinations/permutations of a given character set"
  5. arch=('i686' 'x86_64')
  6. url="http://sourceforge.net/projects/crunch-wordlist/"
  7. license=('GPL')
  8. depends=('glibc')
  9. source=("http://downloads.sourceforge.net/crunch-wordlist/$pkgname-$pkgver.tgz"
  10.         "http://downloads.sourceforge.net/crunch-wordlist/readme.txt")
  11. md5sums=('d5197b894f2701295e85164c85c94d8f'
  12.          '5304f648c80fccdfd392a8f83e91d815')
  13.  
  14. build() {
  15.   cd "$srcdir/$pkgname${pkgver}"
  16.  
  17.   make
  18. }
  19.  
  20. package() {
  21.   cd "$srcdir/$pkgname${pkgver}"
  22.  
  23.   # bin
  24.   install -Dm755  $pkgname "$pkgdir/usr/bin/$pkgname"
  25.  
  26.   # Data, doc and man file
  27.   install -Dm644 charset.lst "$pkgdir/usr/share/$pkgname"
  28.   install -Dm644 ../readme.txt "$pkgdir/usr/share/doc/$pkgname"
  29.   install -Dm644 $pkgname.1 "$pkgdir/usr/share/man/man1/$pkgname.1"
  30. }
clone this paste RAW Paste Data