# Maintainer: Stephan Springer # Contributor: Hyacinthe Cartiaux # Contributor: korjjj pkgname=gns3-gui pkgver=2.2.35 pkgrel=1 pkgdesc='GNS3 network simulator. Graphical user interface package.' arch=('any') url='https://github.com/GNS3/gns3-gui' license=('GPL3') groups=('gns3') depends=( 'desktop-file-utils' 'python-distro' 'python-jsonschema' 'python-psutil' 'python-pyqt5' 'python-pyqt5-sip' 'python-sentry_sdk' 'python-setuptools' 'qt5-svg' 'qt5-websockets' ) optdepends=( 'gns3-server: GNS3 backend. Manages emulators such as Dynamips, VirtualBox or Qemu/KVM' 'xterm: Default terminal emulator for CLI management of virtual instances' 'wireshark-qt: Live packet capture') source=("$pkgname-$pkgver.tar.gz::https://github.com/GNS3/$pkgname/archive/v$pkgver.tar.gz" 'gns3.desktop' 'fix_requirements_for_Arch.diff') sha256sums=('5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b' '51e6db5b47e6af3d008d85e8c597755369fafb75ddb2af9e79a441f943f4c166' '8731b2b81ba742e0341347b3b339e3dc446af5d32ae9dc3cc7b42811445656dd') prepare() { # Arch usually has the latest versions. Patch requirements to allow them. patch --strip=1 -i fix_requirements_for_Arch.diff } build() { cd "$pkgname-$pkgver" python setup.py build } package() { cd "$pkgname-$pkgver" python setup.py install --root="$pkgdir" --optimize=1 install -Dm644 "$srcdir"/gns3.desktop "$pkgdir"/usr/share/applications/gns3.desktop install -Dm644 resources/images/gns3_icon_256x256.png "$pkgdir"/usr/share/pixmaps/gns3.png install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }