# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=aircrack-ng pkgver=1.2_rc5 _pkgver=${pkgver/_/-} pkgrel=0 pkgdesc="Key cracker for the 802.11 WEP and WPA-PSK protocols" url="http://www.aircrack-ng.org" arch="all" license="GPL-2.0" depends="ethtool wireless-tools iw sqlite grep pciutils" makedepends="coreutils libressl-dev sqlite-dev libnl-dev linux-headers pcre-dev bsd-compat-headers zlib-dev libpcap-dev python3-dev autoconf automake libtool" subpackages="$pkgname-doc" source="http://download.aircrack-ng.org/$pkgname-$_pkgver.tar.gz make-check-fix.patch" builddir="$srcdir"/$pkgname-$_pkgver prepare() { default_prepare cd "$builddir" autoreconf -fiv } check() { cd "$builddir" make check } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ sqlite=true experimental=true \ bindir=/usr/bin \ sbindir=/usr/bin \ mandir=/usr/share/man/man1/ \ smandir=/usr/share/man/man8/ make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="bbd65f27d8f1dff684c654363911757a5c9e7f128bdb0e0e2a4f73a1da8e381551a9ec65e08ae780decf86b756d39ab368fc41f2f625aa1f6acdd6c4d61ba99f aircrack-ng-1.2-rc5.tar.gz aed00d62d211c4fcfdeaee72a76dc81b108ad4ec13025ebaad9628aa04a491f042d86efedadb6554e7099d0b3a0e960540eda353522944eee5056b8097df56d3 make-check-fix.patch"