aboutsummaryrefslogtreecommitdiffstats
path: root/community/ubridge/APKBUILD
blob: 5c2659a791894c6ac6599e860ada53baa3a147ce (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
35
36
37
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=ubridge
pkgver=0.9.9
pkgrel=0
pkgdesc="Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces."
url="https://github.com/GNS3/ubridge"
arch="all"
license="GPL3"
depends=""
depends_dev=""
makedepends="$depends_dev libpcap-dev linux-headers"
install=""
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 || return 1
}

package() {
	cd "$builddir"
	install -Dm755 ${srcdir}/${pkgname}-${pkgver}/${pkgname} ${pkgdir}/usr/bin/${pkgname}
	install -dm755 ${pkgdir}/usr/share/doc/${pkgname}
	install -m644 ${srcdir}/${pkgname}-${pkgver}/README.rst -t ${pkgdir}/usr/share/doc/${pkgname}
	install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}

md5sums="de2eb546ec0f3cd2b66eac68d73e3a64  ubridge-0.9.9.tar.gz
91dc8e9c293ae71b1b4e662f2cd83dcb  musl-fixes.patch"
sha256sums="5f81dca1a14f3c17982590f0cb29da60cfe1bca201747805e8be4bd4b6ca796d  ubridge-0.9.9.tar.gz
cd4c6e8aae9a9f822627bc747a935191cb2ef7373af4a81ea538d600b6778d0d  musl-fixes.patch"
sha512sums="c1da4cba8f695eaa153a5a973d157fe2f324cd641046cd189701f361a585b71e57c78e2bfd304ba20f68822d0e2806e748215adbb10d1d0adfaceeb965050201  ubridge-0.9.9.tar.gz
748a33f8c9e6841febcecc6d1fbad7eb5a07dbd05c61bc338dedced04adf8085d4386ae4461bcc406d0975b78ac5a656c260c2443a7369d6876f963ae8e7f128  musl-fixes.patch"