34 lines
1 KiB
Bash
34 lines
1 KiB
Bash
# Template file for 'gns3-gui'
|
|
pkgname=gns3-gui
|
|
version=2.2.10
|
|
revision=1
|
|
archs=noarch
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-setuptools python3-psutil python3-jsonschema python3-sentry
|
|
python3-PyQt5-svg python3-PyQt5-websockets python3-sip xterm inetutils-telnet
|
|
gns3-net-converter python3-distro"
|
|
checkdepends="${depends}"
|
|
short_desc="Graphical Network Simulator 3 - GUI"
|
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://gns3.com"
|
|
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=0f04fe1b3b328bab5ee80755ea90e18e0d25828fbf4a644f3fbec29189f19bc8
|
|
|
|
pre_build() {
|
|
# 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
|
|
}
|