diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-12-13 17:18:12 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-12-13 17:18:24 +0000 |
commit | cfd2de0d16a582c5b430250d91e0b16fc020e995 (patch) | |
tree | 4a059145470d65b2593900deeea7f92962032ae2 /community/ubridge | |
parent | 12e664688e21b1461ea40bf09d49587df5bab122 (diff) | |
download | aports-cfd2de0d16a582c5b430250d91e0b16fc020e995.tar.bz2 aports-cfd2de0d16a582c5b430250d91e0b16fc020e995.tar.xz |
community/ubridge: modernize and add simple check
Add a simple test as upstream doesn't provide a test suite.
Diffstat (limited to 'community/ubridge')
-rw-r--r-- | community/ubridge/APKBUILD | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/community/ubridge/APKBUILD b/community/ubridge/APKBUILD index 2b3e48df25..c2c69ccd64 100644 --- a/community/ubridge/APKBUILD +++ b/community/ubridge/APKBUILD @@ -2,30 +2,34 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=ubridge pkgver=0.9.13 -pkgrel=0 +pkgrel=1 pkgdesc="Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces." url="https://github.com/GNS3/ubridge" arch="all" license="GPL3" -# upstream does not provide test/check -options="!check" makedepends="libpcap-dev linux-headers" subpackages="$pkgname-doc" -source="${pkgname}-${pkgver}.tar.gz::https://github.com/GNS3/${pkgname}/archive/v${pkgver}.tar.gz +source="$pkgname-$pkgver.tar.gz::https://github.com/GNS3/$pkgname/archive/v$pkgver.tar.gz musl-fixes.patch" -builddir="$srcdir"/$pkgname-$pkgver + +builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" make } +check() { + cd "$builddir" + ./ubridge -h > /dev/null +} + 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 + 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 } sha512sums="5a75b5ba991e2cc80f48fd22b8ec1f8f763fa8b8f0a79e441bf50ec7a6f6043e65940941500d564d79c05f802c486a3ed1cae5c2d5793396048d03a5fabd3566 ubridge-0.9.13.tar.gz |