1 # Contributor: max-k <max-k@post.com>
5 pkgdesc="Graphical network simulator that allows simulation of complex networks."
7 url="http://www.gns3.net/"
9 depends=('python2-pyqt' 'python2-sip' 'dynagen' 'inetutils' 'qemu-mcast')
10 optdepends=('wireshark')
11 source=("http://downloads.sourceforge.net/gns-3/GNS3-${pkgver}-src.tar.gz")
12 md5sums=('777ae9d65382e0428952cba21d5c0309')
15 cd ${startdir}/src/GNS3-${pkgver}-src
16 python2 setup.py build
17 python2 setup.py install --prefix ${startdir}/pkg/usr
18 gzip ./docs/man/gns3.1
19 install -D -m 644 ./docs/man/gns3.1.gz ${startdir}/pkg/usr/share/man/man1/gns3.1.gz
20 install -D -m 755 ./qemuwrapper/pemubin.py ${startdir}/pkg/usr/share/GNS3/pemubin.py
21 sed -i 's/#!\/usr\/bin\/env python/#!\/usr\/bin\/env python2/' ./qemuwrapper/qemuwrapper.py
22 install -D -m 755 ./qemuwrapper/qemuwrapper.py ${startdir}/pkg/usr/share/GNS3/qemuwrapper.py