aboutsummaryrefslogtreecommitdiffstats
path: root/community/gns3-gui/APKBUILD
blob: b355cbf4e5977950e95487b5b86de193b812e2fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gns3-gui
pkgver=2.1.20
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 py3-psutil py3-jsonschema
	py3-raven py3-qt5 qt5-qtsvg py3-sip py3-configparser"
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="109bbfb3ab409e9a2664c879a56003084cf13ddc4ee6aff0f2f4ea694419693cf3ef8a67156f5ad434efaeef248e19706148603df87d3f32276686b4aba31612  gns3-gui-2.1.20.tar.gz"