PKGBUILDs/community/aircrack-ng/PKGBUILD

61 lines
1.4 KiB
Bash
Raw Normal View History

2018-05-09 00:15:47 +00:00
# $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>
# - patch out NEON variants
pkgname=aircrack-ng
_pkgver=1.2
pkgver=${_pkgver//-/}
2018-05-24 18:03:44 +00:00
pkgrel=4
2018-05-09 00:15:47 +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')
2018-05-24 18:03:44 +00:00
depends=('openssl' 'sqlite' 'iw' 'net-tools' 'wireless_tools' 'ethtool'
'pcre' 'libpcap' 'python')
2018-05-09 00:15:47 +00:00
conflicts=('aircrack-ng-scripts')
replaces=('aircrack-ng-scripts')
provides=('aircrack-ng-scripts')
source=(https://download.aircrack-ng.org/$pkgname-$_pkgver.tar.gz
0001-no-neon.patch)
md5sums=('bb11ec14e1fe505d8d0d51cee0c54df9')
prepare() {
cd $pkgname-$_pkgver
2018-05-09 00:55:18 +00:00
if [[ $CARCH != "aarch64" ]]; then
2018-05-09 00:15:47 +00:00
patch -p1 -i ../0001-no-neon.patch
fi
}
build() {
cd $pkgname-$_pkgver
./autogen.sh
2018-05-24 18:03:44 +00:00
./configure --prefix=/usr --libexecdir=/usr/lib
2018-05-09 00:15:47 +00:00
2018-05-24 18:03:44 +00:00
make
}
check() {
cd $pkgname-$_pkgver
make check
2018-05-09 00:15:47 +00:00
}
package() {
cd $pkgname-$_pkgver
2018-05-24 18:03:44 +00:00
make DESTDIR="$pkgdir" pkglibexecdir=/usr/lib/aircrack-ng \
2018-05-23 12:57:39 +00:00
sbindir=/usr/bin install
2018-05-09 00:15:47 +00:00
}
md5sums=('bb11ec14e1fe505d8d0d51cee0c54df9'
'061f085f09de3da97521d7a98b1ddfe3')
md5sums=('bb11ec14e1fe505d8d0d51cee0c54df9'
'ffc5b66caa339222d0af56e615c94bd1')