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

17
build() {
18
	cd "$builddir"
19
	python3 setup.py build
20 21
}

22
check() {
23
	cd "$builddir"
24
	python3 setup.py check
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="b9b03c59064214323fe7375256075c56368747c8cd273bea41791b101ea7d6b877443e81dd57f13faf4b4bdc6de558e98648770de4734b1edd1c82911f2fcb9b  gns3-gui-2.1.21.tar.gz"