#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=aircrack-ng
pkgver=1.0rc4
pkgrel=1gv
arch=i486
source=(http://download.aircrack-ng.org/aircrack-ng-1.0-rc4.tar.gz)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "installing" "license*" "VERSION")
url=http://www.aircrack-ng.org/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"aircrack-ng - a 802.11 WEP and WPA-PSK keys cracking program"
"Aircrack-ng is an 802.11 WEP and WPA-PSK keys cracking program that"
"can recover keys once enough data packets have been captured. It"
"implements the standard FMS attack along with some optimizations like"
"KoreK attacks, as well as the all-new PTW attack, thus making the"
"attack much faster compared to other WEP cracking tools. In fact,"
"Aircrack-ng is a set of tools for auditing wireless networks."
)


build() {
	cd $startdir/src/aircrack-ng-1.0-rc4
	
	sed -i "s/-O3/$CFLAGS/" common.mak
	sed -i "s|/local||" common.mak
	sed -i "s|docdir          =.*|docdir = /usr/doc/$pkgname-$pkgver|" common.mak
	sed -i "s|libdir          =.*|libdir = /usr/lib${LIBDIRSUFFIX}|" common.mak

	make || return 1
	make install DESTDIR=$startdir/pkg
}