app=aircrack-ng
version=1.6
build=1sml
homepage="https://www.aircrack-ng.org"
download="https://download.aircrack-ng.org/aircrack-ng-1.6.tar.gz"
desc="Set of tools for auditing WiFi networks"
requires="gcc-libs zlib openssl pcre sqlite libnl"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version 
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sbindir=/bin 

  make
  make install DESTDIR=$pkg 

  cp LICENSE* $pkgdocs/

  mkfinalpkg
}

sha512sums="
bc1121538968becf54bd076a998e8ac71e589967bf8fdbf2b1493fd0cea74a5c42673a358ead94ad92d4ca3652db354217f52677ea1b022095d5fef453236f78  aircrack-ng-1.6.tar.lz
"
