updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / airoscript-ng / PKGBUILD
blob105490864569e3431944b00d91f9376f9c343091
1 # Maintainer: Max Roder <maxroder@web.de>
2 # Contributor: Lex Rivera <x-demon@x-demon.org>
4 pkgname=airoscript-ng
5 pkgver=1.2rc3
6 pkgrel=4
7 pkgdesc="A gui mainly for aircrack-ng. Automates cracking of WEP and WPA"
8 arch=('any')
9 url="http://code.google.com/p/airoscript/"
10 license=('GPL2')
11 depends=('aircrack-ng' 'macchanger')
12 optdepends=('mdk3: deeper penetration testing')
13 options=('!makeflags')
14 source=(http://airoscript.googlecode.com/files/${pkgname}-1.2-3.tar.gz)
15 sha256sums=('2283e333a0de02c1403815b34ad1526b8ada7f505d7ce31dd3495ebd8300c67d')
17 package() {
18   cd $srcdir/${pkgname}-1.2
20   # Remove broken install parts
21   sed -i '/install-docs \\/ d' Makefile-Linux
22   sed -i '/install-locale \\/ d' Makefile-Linux
23   sed -i '/install-desktop \\/ d' Makefile-Linux
25   # Finally make...
26   make DESTDIR=${pkgdir} \
27         prefix=usr \
28         picdir=${pkgdir}/usr/share/pixmaps/ \
29         appdir=${pkgdir}/usr/share/applications/ \
30         etcdir=${pkgdir}/etc/${pkgname}  || return 1
32   # Patch config - replace "usr/local" by "usr"
33   sed -i 's/usr\/local/usr/g' ${pkgdir}/etc/${pkgname}/airoscript-ng_advanced.conf
34   
35   # Patch executable to find config files
36   sed -i 's/etc\//etc\/airoscript-ng\//g' ${pkgdir}/usr/sbin/${pkgname}
38   # Clean up
39   rm -rf ${pkgdir}/usr/share/locale \
40         ${pkgdir}/usr/share/doc \
41         ${pkgdir}/usr/share/man
44 # vim:set ts=2 sw=2 et: