void-packages/srcpkgs/gns3-gui/template

34 lines
1.0 KiB
Bash

# Template file for 'gns3-gui'
pkgname=gns3-gui
version=2.2.19
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-psutil python3-jsonschema python3-sentry
python3-PyQt5-svg python3-PyQt5-websockets xterm inetutils-telnet
gns3-net-converter python3-distro"
checkdepends="${depends}"
short_desc="Graphical Network Simulator 3 - GUI"
maintainer="Tim Sandquist <tim.sandquist@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://gns3.com"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
checksum=@8da8b09690bf5d086732c032d3871b8e77fd55efa8553ac9e5f65c4c19bfb3d6
post_patch() {
# relax requirements
vsed -e 's|jsonschema.*|jsonschema>=2.6.0|' \
-e 's|psutil.*|psutil>=5.6.7|' -i requirements.txt
}
do_check() {
# uses tox, broken
cd build/lib
python3 -c 'import gns3 as m; print(m)'
}
post_install() {
vinstall gns3-gui.desktop 644 usr/share/applications
vinstall resources/images/gns3_icon_256x256.png 644 usr/share/pixmaps gns3.png
}