# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gns3-gui
pkgver=2.1.4
pkgrel=0
pkgdesc="GNS3 network simulator. Graphical user interface package."
url="https://github.com/GNS3/gns3-gui"
arch="noarch"
license="GPL-3.0"
depends="python3 py3-paramiko gns3-converter py3-psutil py3-jsonschema
	py3-raven py3-qt5 qt5-qtsvg"
makedepends="python3-dev py-setuptools"
subpackages="$pkgname-doc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/GNS3/${pkgname}/archive/v${pkgver}.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	python3 setup.py build
}

check() {
	cd "$builddir"
	python3 setup.py check
}

package() {
	cd "$builddir"
	python3 setup.py install --root=${pkgdir} --optimize=1
	install -Dm644 ${srcdir}/${pkgname}-${pkgver}/resources/images/gns3_icon_256x256.png ${pkgdir}/usr/share/pixmaps/gns3.png
	install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}

sha512sums="7f5608729dcf1df38ae72b70b53edf7d1c8ea4fef50c75b9a744d25156be121c4e8ac6a1938c6d320cd2d7734bf78d33906e46c0c042f0b8ee355dd4788a0800  gns3-gui-2.1.4.tar.gz"
