summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8b8fcfd7948ec39cbcbdae65ae294e4ff4f10bae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Gaetan Bisson <bisson@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>

pkgname=aircrack-ng-svn
_pkgname=aircrack-ng
pkgver=20170911.2917
pkgrel=1
pkgdesc='Key cracker for the 802.11 WEP and WPA-PSK protocols'
url='http://www.aircrack-ng.org/'
arch=('i686' 'x86_64' 'armv7h')
license=('GPL2')
makedepends=('subversion')
depends=('openssl' 'sqlite' 'iw' 'net-tools')
source=("${_pkgname}::svn+http://svn.aircrack-ng.org/trunk")
sha256sums=('SKIP')

provides=("${_pkgname}")
conflicts=("${_pkgname}")

pkgver() {
	cd "${srcdir}/${_pkgname}"
	svn info | awk '/Revision/{r=$2}/Date/{gsub(/-/,"");d=$4}END{print d"."r}'
}

_opts='sqlite=true experimental=true ext_scripts=true'

build() {
	cd "${srcdir}/${_pkgname}"
	make ${_opts}
}

package() {
	cd "${srcdir}/${_pkgname}"
	make ${_opts} \
		DESTDIR="${pkgdir}" \
		sbindir=/usr/bin \
		prefix=/usr \
		etcdir=/etc \
		install
}