32 lines
1,000 B
Bash
32 lines
1,000 B
Bash
# Template file for 'gns3-gui'
|
|
pkgname=gns3-gui
|
|
version=2.2.20
|
|
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=@6a5cc45f2a1d7ec8634b33b812013df6635b4c3994f58bf0f55efc41d0a096d0
|
|
|
|
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
|
|
}
|