1 # Maintainer: Techlive Zheng <techlivezheng [at] gmail [dot] com>
5 pkgdesc="Graphing tool for the aircrack-ng suite"
9 url="http://www.aircrack-ng.org"
11 depends=('python2' 'graphviz')
12 conflicts=('aircrack-ng-scripts')
13 source=("http://download.aircrack-ng.org/${_pkgbase}-${pkgver}.tar.gz")
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
34 install -Dm755 airgraph-ng/airgraph-ng.py ${pkgdir}/usr/bin/airgraph-ng || return 1
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
43 install -Dm644 airgraph-ng/lib/lib_Airgraphviz.py ${pkgdir}/usr/lib/airgraph-ng/lib_Airgraphviz.py || return 1
46 md5sums=('f7a24ed8fad122c4187d06bfd6f998b4')