summaryrefslogtreecommitdiff
path: root/community/iouyap/APKBUILD
blob: d3e43a5c634994e3310e59754247c0e384f10c37 (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
33
34
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=iouyap
pkgver=0.97
pkgrel=1
pkgdesc="Bridge IOU to UDP, TAP and Ethernet."
url="https://github.com/GNS3/iouyap"
arch="all"
license="GPL-3.0"
makedepends="$depends_dev linux-headers bison flex bsd-compat-headers"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/GNS3/$pkgname/archive/v$pkgver.tar.gz
	musl-fixes.patch"

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	./iouyap -help > /dev/null
}

package() {
	cd "$builddir"
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="c6b3779bb1a0a004085796bb72cc9824ef3ef04db70cef13a12a2f33676fca11d721c1dcd81a4caff67ce56511624f293c89579705434a24332f672a8dfa2d33  iouyap-0.97.tar.gz
311a7e330baa5cb762390e941d4f7c48385feef0e6cddb0252307a16fa69d5515408dcfe2b4f9a8523a05b5c9edd79df4509d51a8ac0163959a6a4f9e61f6e4a  musl-fixes.patch"