APKBUILD 1.31 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.12
5
pkgrel=1
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 11
depends="python3 py3-paramiko py3-psutil py3-jsonschema
	py3-raven py3-qt5 qt5-qtsvg py3-sip"
12
makedepends="python3-dev py-setuptools"
13
subpackages="$pkgname-doc"
14 15
source="${pkgname}-${pkgver}.tar.gz::https://github.com/GNS3/${pkgname}/archive/v${pkgver}.tar.gz
fix-qt5-sip.patch"
16
builddir="$srcdir"/$pkgname-$pkgver
17

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

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

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

35 36
sha512sums="8846a26982a167d5c645f6127a29ec76a1d30e28ff4e256f3bb45e14833887779c1346554b590366a4f51d71925b262152cded2a7e8de9313d4bd6af97c7d943  gns3-gui-2.1.12.tar.gz
a38f3b2c6864ccc3fe78422a92b9a83ea1fa04c15e26131d74e6303dcc6671148d2860dc129483bac53f699dd25cbdfae20ac63ab170891fd4640c739d4bfc6c  fix-qt5-sip.patch"