1 # Maintainer: Tarjaizaid <tarjaizaid@gmail.com>
2 # based on gns3 pkgbuild https://aur.archlinux.org/packages.php?ID=23825
3 # Contributor: max-k <max-k@post.com>
7 pkgdesc="Unofficial version with VirtualBox support of Graphical network simulator that allows simulation of complex networks."
9 url="http://www.gns3.net/"
11 depends=('python2-pyqt' 'python2-sip' 'dynamips' 'inetutils')
12 optdepends=('qemu' 'wireshark' 'virtualbox' 'virtualbox-sdk' 'xdotool')
14 source=("http://downloads.sourceforge.net/gns-3/GNS3-${pkgver}-src-vbox-2011-07-29.tar.bz2")
15 md5sums=('45a845d23a2213316943428054030207')
18 cd ${srcdir}/GNS3-${pkgver}
19 python2 setup.py build
20 python2 setup.py install --prefix ${pkgdir}/usr
21 gzip ./docs/man/gns3.1
22 install -D -m 644 ./docs/man/gns3.1.gz ${pkgdir}/usr/share/man/man1/gns3.1.gz
23 #sed -i 's/#!\/usr\/bin\/env python/#!\/usr\/bin\/env python2/' ./qemuwrapper/qemuwrapper.py
24 install -D -m 755 ${srcdir}/GNS3-${pkgver}/qemuwrapper/qemuwrapper.py ${pkgdir}/usr/share/GNS3/qemuwrapper.py
25 install -D -m 755 ${srcdir}/GNS3-${pkgver}/vboxwrapper/vboxwrapper.py ${pkgdir}/usr/share/GNS3/vboxwrapper.py
26 install -D -m 755 ${srcdir}/GNS3-${pkgver}/vboxwrapper/vboxcontroller_4_1.py ${pkgdir}/usr/share/GNS3/vboxcontroller_4_1.py
27 install -D -m 755 ${srcdir}/GNS3-${pkgver}/vboxwrapper/vboxtestcase.py ${pkgdir}/usr/share/GNS3/vboxtestcase.py