aboutsummaryrefslogtreecommitdiffstats
path: root/community/vpcs/APKBUILD
blob: 8281a208b9be84a2f8ba314af02e9bc02df4e320 (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
31
32
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=vpcs
pkgver=0.8.2
pkgrel=1
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="
b780b36b2f92b42a19fac9dbebd5e79f860186f399007d82e25de9900fb443a59ab57c53045a84a0d26058dc77e2384587cc7db2c50c105f188e39e5447ec63d  vpcs-0.8.2.tar.gz
fd3c6bebab8214c378344f05cb30fcb6978809b23ea5ea2abcfd5b956c6a9200f52ffe579d2b12b6d77e4b94b086dad901959d0663adaa25061b1edb254191af  musl-fixes.patch
5f4333b402032686764ada43db8e8be609b1cbcddcc5204e2cc65ef939550f727e4fa53c012714eccbb873a12c26e77b02036c65fbbd489a198f881eb8ed24ac  vpcs_alpine_aarch64.patch
"