updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / airgraph-ng / PKGBUILD
blob67667d3d4602499e41166973642a59f752e7db95
1 # Maintainer: Techlive Zheng <techlivezheng [at] gmail [dot] com>
3 _pkgbase=aircrack-ng
4 pkgname=airgraph-ng
5 pkgdesc="Graphing tool for the aircrack-ng suite"
6 pkgver=1.1
7 pkgrel=1
8 arch=('i686' 'x86_64')
9 url="http://www.aircrack-ng.org"
10 license=('GPLv2')
11 depends=('python2' 'graphviz')
12 conflicts=('aircrack-ng-scripts')
13 source=("http://download.aircrack-ng.org/${_pkgbase}-${pkgver}.tar.gz")
16 build() {
17   return
20 package() {
21   cd ${srcdir}/${_pkgbase}-${pkgver}/scripts
23   sed -i "s/python/python2/g" airgraph-ng/dump-join.py
24   sed -i "s/python/python2/g" airgraph-ng/airgraph-ng.py
26   sed -i "s:/usr/local/bin/lib:/usr/lib/airgraph-ng:g" airgraph-ng/airgraph-ng.py
27   # dump-join.py (airgraph-ng)
28   install -Dm755 airgraph-ng/dump-join.py           ${pkgdir}/usr/bin/dump-join                      || return 1
30   # dump-join.py (airgraph-ng) man page
31   install -Dm644 airgraph-ng/man/dump-join.1        ${pkgdir}/usr/share/man/man1/dump-join.1         || return 1
33   # airgraph-ng bin
34   install -Dm755 airgraph-ng/airgraph-ng.py         ${pkgdir}/usr/bin/airgraph-ng                    || return 1
36   # airgraph-ng doc
37   install -Dm644 airgraph-ng/README                 ${pkgdir}/usr/share/doc/airgraph-ng/README       || return 1
39   # airgraph-ng man page
40   install -Dm644 airgraph-ng/man/airgraph-ng.1      ${pkgdir}/usr/share/man/man1/airgraph-ng.1       || return 1
42   # airgraph-ng libs
43   install -Dm644 airgraph-ng/lib/lib_Airgraphviz.py ${pkgdir}/usr/lib/airgraph-ng/lib_Airgraphviz.py || return 1
46 md5sums=('f7a24ed8fad122c4187d06bfd6f998b4')