# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=aircrack-ng pkgver=1.3 _pkgver=${pkgver/_/-} pkgrel=0 pkgdesc="Key cracker for the 802.11 WEP and WPA-PSK protocols" url="http://www.aircrack-ng.org" arch="all !s390x" # tests fails on s390x license="GPL-2.0-or-later" depends="ethtool wireless-tools iw sqlite grep pciutils" makedepends="autoconf automake libnl3-dev libpcap-dev libressl-dev libtool linux-headers pcre-dev python3-dev sqlite-dev zlib-dev" checkdepends="coreutils" 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 } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --with-experimental make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="0c2376ac702cd36021b9017b40c5af9466c5689832a0e40debcb8c0a2cd13ec942170930903c4e2e06678c429a89cd4d78ab43e925b707f816bf48d6c9514ec9 aircrack-ng-1.3.tar.gz aed00d62d211c4fcfdeaee72a76dc81b108ad4ec13025ebaad9628aa04a491f042d86efedadb6554e7099d0b3a0e960540eda353522944eee5056b8097df56d3 make-check-fix.patch"