# Contributor (Arch)     : CRT <crt.011@gmail.com>
# Contributor (Arch)     : Sébastien Duquette <ekse.0x@gmail.com>
# Contributor (Arch)     : icarus <icarus.roaming@gmail.com>
# Contributor (Arch)     : Stephane Travostino <stephane.travostino@gmail.com>
# Maintainer  (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>

pkgname=cowpatty
pkgver=4.6
pkgrel=5
pkgdesc="Wireless WPA/WPA2 PSK handshake cracking utility"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.wirelessdefence.org/Contents/coWPAttyMain.htm"
license=('GPL')
depends=('openssl' 'libpcap')
options=('docs' '!makeflags')
source=("http://www.wirelessdefence.org/Contents/Files/cowpatty-$pkgver.tgz")

build() {
  cd "$srcdir/$pkgname-$pkgver"
  make 
  make strip 
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" BINDIR="/usr/bin/" install
  install -D -m644 dict "$pkgdir"/usr/share/cowpatty/dict
  install -D -m644 COPYING "$pkgdir"/usr/share/licenses/"$pkgname"/COPYING
}