PKGBUILDs/community/aircrack-ng/PKGBUILD

55 lines
1.8 KiB
Bash
Raw Normal View History

2016-02-18 01:05:42 +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>
# - grab upstream commits for AArch64
# remove when bumped upstream
pkgname=aircrack-ng
_pkgver=1.2-rc4
pkgver=${_pkgver//-/}
2017-04-24 23:41:22 +00:00
pkgrel=4
2016-02-18 01:05:42 +00:00
pkgdesc="Key cracker for the 802.11 WEP and WPA-PSK protocols"
arch=('i686' 'x86_64')
2017-04-24 23:41:22 +00:00
url="https://www.aircrack-ng.org"
2016-02-18 01:05:42 +00:00
license=('GPL2')
depends=('openssl' 'sqlite' 'iw' 'net-tools' 'wireless_tools' 'ethtool')
conflicts=('aircrack-ng-scripts')
replaces=('aircrack-ng-scripts')
provides=('aircrack-ng-scripts')
2017-04-24 23:41:22 +00:00
source=(https://download.aircrack-ng.org/$pkgname-$_pkgver.tar.gz
9a1846507ff043c397257206ff21adae90a122f4.patch
2016-02-18 01:05:42 +00:00
https://github.com/aircrack-ng/aircrack-ng/commit/252717588f2483a007bbd8bb6ceac3257e8c67e8.patch
https://github.com/aircrack-ng/aircrack-ng/commit/913443c9745f72899fdd75e71217dd7b3d76ce34.patch)
md5sums=('3bbc7d5035a98ec01e78774d05c3fcce'
2017-04-24 23:41:22 +00:00
'efeab8202444d183b2fc02f455c1c294'
2016-02-18 01:05:42 +00:00
'872a852ce0e2daffeb5038d81153d97c'
'5370cdb6889619ff425e74fc58f4b91b')
prepare() {
cd $pkgname-$_pkgver
2017-04-24 23:41:22 +00:00
patch -Np1 -i "$srcdir"/9a1846507ff043c397257206ff21adae90a122f4.patch
2016-02-18 01:05:42 +00:00
patch -p1 -i ../252717588f2483a007bbd8bb6ceac3257e8c67e8.patch
patch -p1 -i ../913443c9745f72899fdd75e71217dd7b3d76ce34.patch
}
build() {
cd $pkgname-$_pkgver
make sqlite=true experimental=true
}
package() {
cd $pkgname-$_pkgver
make DESTDIR="$pkgdir" sqlite=true experimental=true \
bindir=/usr/bin sbindir=/usr/bin mandir=/usr/share/man/man1/ \
smandir=/usr/share/man/man8/ install
}