PKGBUILDs/community/aircrack-ng/PKGBUILD

49 lines
1.2 KiB
Bash
Raw Normal View History

2018-08-04 15:54:41 +00:00
# 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
2018-10-10 15:48:08 +00:00
_pkgver=1.4
2018-08-04 15:54:41 +00:00
pkgver=${_pkgver//-/}
2018-10-10 15:48:08 +00:00
pkgrel=1
2018-08-04 15:54:41 +00:00
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)
2018-10-10 15:48:08 +00:00
md5sums=('24e22f6f6eca1e7dc0d203e5719d3e8d')
2018-08-04 15:54:41 +00:00
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
}