aboutsummaryrefslogtreecommitdiffstats
path: root/community/aircrack-ng/APKBUILD
blob: d0f40a4cd1187f2884e649a47f32f7679f17f4f2 (plain)
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.2_rc5
_pkgver=${pkgver/_/-}
pkgrel=2
pkgdesc="Key cracker for the 802.11 WEP and WPA-PSK protocols"
url="http://www.aircrack-ng.org"
arch="all"
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="bbd65f27d8f1dff684c654363911757a5c9e7f128bdb0e0e2a4f73a1da8e381551a9ec65e08ae780decf86b756d39ab368fc41f2f625aa1f6acdd6c4d61ba99f  aircrack-ng-1.2-rc5.tar.gz
aed00d62d211c4fcfdeaee72a76dc81b108ad4ec13025ebaad9628aa04a491f042d86efedadb6554e7099d0b3a0e960540eda353522944eee5056b8097df56d3  make-check-fix.patch"