APKBUILD 1.15 KB
Newer Older
1 2 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gns3-gui
4 5
pkgver=2.0.3
pkgrel=0
6 7 8 9
pkgdesc="GNS3 network simulator. Graphical user interface package."
url="https://github.com/GNS3/gns3-gui"
arch="noarch"
license="GPL3"
10
depends="python3 py3-paramiko gns3-converter py3-psutil py3-jsonschema
11
	py3-raven py3-qt5 qt5-qtsvg"
12
makedepends="python3-dev py-setuptools"
13 14 15
subpackages="$pkgname-doc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/GNS3/${pkgname}/archive/v${pkgver}.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
16 17 18 19 20 21

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

22 23
build() {
	cd "$builddir"
24
	python3 setup.py build
25 26 27 28 29 30
}

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
31
	install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
32 33
}

34
sha512sums="0c6955c885c1110acd4c791e92ba24db583d259938bb7f0c2147f3f648dabd4dcaeb2967b8e30e6169adca9f3b8ee667f00431bec66d6fb5fde1f9d90cca88f8  gns3-gui-2.0.3.tar.gz"