33 lines
1000 B
Bash
33 lines
1000 B
Bash
# Template file for 'gns3-gui'
|
|
pkgname=gns3-gui
|
|
version=2.2.21
|
|
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=@58b12add3fa29a095f14bbf4c61f54f41fdee45c8ca490c651d9ccb37b9884fe
|
|
|
|
post_patch() {
|
|
# relax requirements
|
|
vsed -e 's|jsonschema.*|jsonschema>=2.6.0|' -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
|
|
}
|