1 # Contributor: Sigma <sigma_g@melix.net>
6 pkgdesc="Visualizing packets"
8 url="https://github.com/aristus/packet-flight/"
11 optdepends=('processing: to use the pde files produced')
13 provides=('packet-flight')
17 _gitroot="git://github.com/aristus/packet-flight.git"
18 _gitname="packet-flight"
23 msg "Connection au serveur GIT…"
24 if [[ -d ${_gitname} ]]; then
25 (cd ${_gitname} && git pull origin)
27 git clone ${_gitroot} ${_gitname}
30 msg "Synchonisation avec le serveur GIT maitre finie, ou aucune réponse"
32 cat > packet-flight-bin <<EOF
34 # Usage : packet-flight some_data.dump > data.pde
35 cat \$1 | python2 /usr/share/$pkgname/process-dump.py
43 install -d ${pkgdir}/usr/bin
44 install -d ${pkgdir}/usr/share/${pkgname}
45 install -m644 process-dump.py ${pkgdir}/usr/share/${pkgname}/
46 install -m644 packet_flight/packet_flight.pde ${pkgdir}/usr/share/${pkgname}/packet_flight.pde
47 install -m755 packet-flight-bin ${pkgdir}/usr/bin/packet-flight