aboutsummaryrefslogtreecommitdiffstats
path: root/community/vpcs/APKBUILD
blob: 2ee785415acc38f48cc57307218a1d65100bfcf1 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=vpcs
pkgver=0.8.1
pkgrel=0
pkgdesc="Simple virtual PC simulator"
url="https://sourceforge.net/projects/vpcs/"
arch="aarch64 x86 x86_64"
license="BSD-2-Clause"
makedepends="linux-headers bsd-compat-headers"
source="$pkgname-$pkgver.tar.gz::https://github.com/GNS3/${pkgname}/archive/v${pkgver}.tar.gz
	musl-fixes.patch
	vpcs_alpine_aarch64.patch"

build() {
	cd src && ./mk.sh
}

check() {
	cd src && ./vpcs -v || test $? = 2
}

package() {
	mkdir -p "$pkgdir/usr/bin"
	install -Dm755 src/${pkgname} ${pkgdir}/usr/bin/${pkgname}
}

sha512sums="ebc5b2be524eaab36ebc09d6d75b9b80c7bdc3c1f8e151df816ce9e547ff6da26633ebfc16d7105898063c951dba8447f70ff8868b3af8aba1450dd63b81a39f  vpcs-0.8.1.tar.gz
fd3c6bebab8214c378344f05cb30fcb6978809b23ea5ea2abcfd5b956c6a9200f52ffe579d2b12b6d77e4b94b086dad901959d0663adaa25061b1edb254191af  musl-fixes.patch
5f4333b402032686764ada43db8e8be609b1cbcddcc5204e2cc65ef939550f727e4fa53c012714eccbb873a12c26e77b02036c65fbbd489a198f881eb8ed24ac  vpcs_alpine_aarch64.patch"