Commit a1517eff authored by Francesco Colista's avatar Francesco Colista
Browse files

community/gns3-server: upgrade to 1.5.4, modernize APKBUILD

parent 98bc3f5c
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gns3-server
pkgver=1.5.3.3
pkgrel=2
pkgver=1.5.4
pkgrel=0
pkgdesc="GNS3 network simulator. Server package."
url="https://github.com/GNS3/gns3-server"
arch="all"
license="GPL3"
depends="busybox dynamips python3 py3-psutil py3-jinja2 py3-aiohttp py3-pytest
py3-netifaces py3-ws4py py3-zipstream py3-raven py3-jsonschema"
depends_dev=""
makedepends="$depends_dev py-setuptools python3-dev linux-headers py3-pytest"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/GNS3/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
check() {
cd "$builddir"
python3 setup.py check
}
prepare() {
cd "$builddir"
# Current upstream contains arch dependent (x86) binaries in the
......@@ -27,12 +30,12 @@ prepare() {
build() {
cd "$builddir"
python3 setup.py build || return 1
python3 setup.py build
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1
python3 setup.py install --prefix=/usr --root="$pkgdir"
mkdir -p "$pkgdir"/usr/share/doc/$pkgname
cat >"$pkgdir"/usr/share/doc/$pkgname/README.alpine <<EOF
gns3-server has several optional packages that must be installed manually for additional functionality:
......@@ -48,6 +51,4 @@ EOF
}
md5sums="1dd61d561ae0a82b80d26a5b89cc8e25 gns3-server-1.5.3.3.tar.gz"
sha256sums="585ee5190f644622edbd11b7e7e213b9abcb249f6bddbcce4f32ac94e245f61e gns3-server-1.5.3.3.tar.gz"
sha512sums="d521c27af566d9f36c349cb33f2577c860dfa2b0d5c777f9076e670124de5245874bb74a7a0b2d88c194bb04d191b7bdd2232739374db61aecaadb2e1d1964ca gns3-server-1.5.3.3.tar.gz"
sha512sums="43c737b45c6a5f8591e190ab788a716e74732ea3526e5868d411b81528520c825880f5179c6978e4939707fa7e037fbbcd857384f364acd1f6b0a4952e8e30c8 gns3-server-1.5.4.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment