aboutsummaryrefslogtreecommitdiffstats
path: root/community/aircrack-ng/APKBUILD
blob: 6a1eac821e98b89fad76a9505ac3162f9fe4f9af (plain) (blame)
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
39
40
41
42
43
44
45
46
47
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=aircrack-ng
pkgver=1.5.2
_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 openssl-dev libtool
	linux-headers pcre-dev python3-dev sqlite-dev zlib-dev"
checkdepends="coreutils"
subpackages="$pkgname-doc"
source="https://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="72c249782dda3a875fbec98e4fe0e6044a6f123ebd36341a5f42733dfe6c26d96b5c74f67c0547b81c5dd5e2f52a6f475b424885f8e6fa21279ac539228038f5  aircrack-ng-1.5.2.tar.gz
bd0e42c04c724bd2ec3b93f4fd6c5de39a1d23989905ab1d145c25caab22528447bd9184a65ea452da80244565601ce5a7abb63da6ecf9fd86d595eecf20fc61  make-check-fix.patch"