updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / packet-flight / PKGBUILD
blobf073e15fa8cc0815e3bb254e895c75d9a3633b13
1 # Contributor: Sigma <sigma_g@melix.net>
3 pkgname=packet-flight
4 pkgver=20110124
5 pkgrel=1
6 pkgdesc="Visualizing packets"
7 arch=('any')
8 url="https://github.com/aristus/packet-flight/"
9 license=('BSD')
10 depends=('python2')
11 optdepends=('processing: to use the pde files produced')
12 makedepends=('git')
13 provides=('packet-flight')
14 source=()
15 md5sums=()
17 _gitroot="git://github.com/aristus/packet-flight.git"
18 _gitname="packet-flight"
20 build() {
21   cd ${srcdir}
23   msg "Connection au serveur GIT…"
24   if [[ -d ${_gitname} ]]; then
25     (cd ${_gitname} && git pull origin)
26   else
27     git clone ${_gitroot} ${_gitname}
28     cd ${_gitname}
29   fi
30   msg "Synchonisation avec le serveur GIT maitre finie, ou aucune rĂ©ponse"
32   cat > packet-flight-bin <<EOF
33 #\!/bin/sh
34 # Usage : packet-flight some_data.dump > data.pde
35 cat \$1 | python2 /usr/share/$pkgname/process-dump.py
36 EOF
40 package() {
41   cd ${_gitname}
42   msg `pwd`
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