# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=gns3-server pkgver=2.1.0 pkgrel=2 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-aiohttp-cors py3-pytest py3-netifaces py3-ws4py py3-zipstream py3-raven py3-jsonschema py3-yarl py3-multidict py3-prompt_toolkit" makedepends="busybox-static py-setuptools python3-dev linux-headers py3-pytest" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/GNS3/$pkgname/archive/v$pkgver.tar.gz gns3-server-aiohttp.patch dropped-requirements.patch" builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" # Upstream includes busybox binary for x86_64. We want to replace it by # $CARCH binary if [ "$CARCH" != "x86_64" ] ; then busybox_bin=$(find . -name busybox -type f) cp /bin/busybox.static $busybox_bin fi python3 setup.py build } check() { cd "$builddir" python3 setup.py check } package() { cd "$builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" mkdir -p "$pkgdir"/usr/share/doc/$pkgname cat >"$pkgdir"/usr/share/doc/$pkgname/README.alpine <