### this file is sourced not run
pkgname=aircrack-ng
PKGVER=1.7
PKGBUILD=1
PKGARCH=x86_64

# source: JakeSFR
TARBALL=${pkgname}-${PKGVER}.tar.gz
MD5SUM=a918ea7146f91d8c799fb770c38f4bec
SRC_URL=https://download.aircrack-ng.org/$TARBALL
BUNDLE=

SLACKDESC="${pkgname}: ${pkgname} ${PKGVER} (WiFi security auditing tools suite)  
${pkgname}:  
${pkgname}: Aircrack-ng is a complete suite of tools to assess WiFi network security.
${pkgname}: It focuses on different areas of WiFi security:
${pkgname}: * Monitoring: Packet capture and export of data to text files for
${pkgname}:   further processing by third party tools
${pkgname}: * Attacking: Replay attacks, deauthentication, fake access points
${pkgname}:   and others via packet injection
${pkgname}: * Testing: Checking WiFi cards and driver capabilities (capture and injection)
${pkgname}: * Cracking: WEP and WPA PSK (WPA 1 and 2)
${pkgname}: https://www.aircrack-ng.org/
"

SLACKINSTALL=''
SLACKREQ='ethtool iw libnl libpcap libpcre openssl sqlite3'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="${CONFFLAGS} --with-sqlite3=/usr/lib64"

	cd /tmp/${pkgname}* &&

	./autogen.sh ${CONFFLAGS} &&
	make ${MAKEFLAGS} &&
	make ${MAKEFLAGS} install &&
	pkg_build_slackdesc &&
	rm -rf /var /usr/lib &&	# get rid of empty dirs
	true
}
