/
PKGBUILD
37 lines (32 loc) · 1.58 KB
/
PKGBUILD
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
# Maintainer: ArchStrike <team@archstrike.org>
# Contributor: N3mes1s <n3mes1s.oxoo@gmail.com>
buildarch=220
pkgname=netzob
pkgver=1.0.2
pkgrel=1
pkgdesc="An opensource tool which supports the expert in its operations of reverse engineering, evaluation and simulation of communication protocols."
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/netzob/netzob/"
license=('GPL3')
depends=('python' 'strace' 'lsof' 'python-matplotlib' 'python-lxml' 'python-sphinx' 'graphviz' 'python-ptrace'
'python-pcapy' 'python-bitarray' 'impacket' 'python-gobject' 'python-babel' 'python-httplib2'
'python-bintrees' 'python-netaddr' 'python-arpreq' 'ipython')
makedepends=('python-setuptools')
source=(${url}archive/Release/netzob-$pkgver.tar.gz)
sha512sums=('a56a1ab0a1066aa7825cabb475225756f0009a857d2c6c8d7ed8aba8753aec5f401ba0f170db6b6677875f7a0388e0443eee8fa3709d05b6e9f9e5c04f1c9f97')
build() {
cd "$srcdir/netzob-Release-netzob-$pkgver/netzob"
python setup.py build
}
package() {
cd "$srcdir/netzob-Release-netzob-$pkgver/netzob"
python setup.py install --root=$pkgdir --optimize=1
# fixing perms on all of the files below
chmod 644 $pkgdir/usr/lib/python3.7/site-packages/Netzob-$pkgver-py3.7.egg-info/PKG-INFO
for f in `find $pkgdir/usr/share/netzob/ -type f -iname "*.png" -or -type f -iname "*.xsd" \
-or -type f -iname "*.glade" -or -type f -iname "*.ui" \
-or -type f -iname "*.default"`; do chmod 644 $f; done
for a in $(find $pkgdir/usr/lib/python3.7/site-packages/Netzob-$pkgver-py3.7.egg-info/ -type f -iname "*.txt"); do
chmod 644 $a
done
}