PKGBUILDs/community/aircrack-ng/PKGBUILD
2018-08-04 15:54:41 +00:00

49 lines
1.2 KiB
Bash

# $Id$
# Maintainer: Jonathan Steel <jsteel at archlinux.org>
# Contributor: Brad Fanella <bradfanella@archlinux.us>
# Contributor: Daenyth <Daenyth+Arch [at] gmail [dot] com>
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
# Contributor: ice-man <icemanf@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - build v7 with neon
pkgname=aircrack-ng
_pkgver=1.3
pkgver=${_pkgver//-/}
pkgrel=1.1
pkgdesc="Key cracker for the 802.11 WEP and WPA-PSK protocols"
arch=('x86_64')
url="https://www.aircrack-ng.org"
license=('GPL2')
depends=('openssl' 'sqlite' 'iw' 'net-tools' 'wireless_tools' 'ethtool'
'pcre' 'libpcap' 'python')
conflicts=('aircrack-ng-scripts')
replaces=('aircrack-ng-scripts')
provides=('aircrack-ng-scripts')
source=(https://download.aircrack-ng.org/$pkgname-$_pkgver.tar.gz)
md5sums=('c7c5b076dee0c25ee580b0f56f455623')
build() {
cd $pkgname-$_pkgver
[[ $CARCH == "armv7h" ]] && CFLAGS=`echo $CFLAGS | sed -e 's/vfpv3-d16/neon/'` && CXXFLAGS="$CFLAGS"
./autogen.sh
./configure --prefix=/usr --libexecdir=/usr/lib
make
}
check() {
cd $pkgname-$_pkgver
make check
}
package() {
cd $pkgname-$_pkgver
make DESTDIR="$pkgdir" pkglibexecdir=/usr/lib/aircrack-ng \
sbindir=/usr/bin install
}