void-packages/srcpkgs/aircrack-ng/template

29 lines
914 B
Bash

# Template build file for 'aircrack-ng'
pkgname=aircrack-ng
_aircrack_ver=1.2
_aircrack_rc=rc4
version="${_aircrack_ver}${_aircrack_rc}"
revision=2
wrksrc="${pkgname}-${_aircrack_ver}-${_aircrack_rc}"
hostmakedepends="pkg-config"
makedepends="zlib-devel libressl-devel sqlite-devel libnl3-devel"
short_desc="A key cracker for the 802.11 WEP and WPA-PSK protocols"
homepage="http://www.aircrack-ng.org/"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
distfiles="http://download.aircrack-ng.org/${pkgname}-${_aircrack_ver}-${_aircrack_rc}.tar.gz"
checksum=d93ac16aade5b4d37ab8cdf6ce4b855835096ccf83deb65ffdeff6d666eaff36
post_extract() {
# detect our cross compilers
sed -i 's,\(mips-\* | arm-\*\),\1 | arm???-*,' autocfg
}
do_build() {
make CC=$CC CXX=$CXX sqlite=true libnl=true ${makejobs}
}
do_install() {
make prefix=/usr sbindir=/usr/bin DESTDIR=${DESTDIR} sqlite=true libnl=true install
}