testing/x11vnc: modernize APKBUILD, add check()

This commit is contained in:
Leonardo Arena 2017-03-28 11:25:04 +00:00
parent 256991ce19
commit ff66f4d562

View File

@ -2,35 +2,28 @@
# Maintainer: Tuan M. Hoang <tmhoang@flatglobe.org>
pkgname=x11vnc
pkgver=0.9.14
pkgrel=0
pkgrel=1
pkgdesc="VNC server for real X displays"
url="http://www.karlrunge.com/x11vnc/"
arch="all"
license="GPL2"
depends=""
makedepends="libressl-dev libjpeg-turbo-dev avahi-dev libvncserver-dev
automake autoconf"
install=""
subpackages="$pkgname-doc"
source="x11vnc-$pkgver.tar.gz::https://github.com/LibVNC/x11vnc/archive/$pkgver.tar.gz
libressl.patch
"
builddir="$srcdir"/x11vnc-$pkgver
_builddir="$srcdir"/x11vnc-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
cd "$builddir"
default_prepare || return 1
update_config_sub || return 1
autoreconf -v --install
}
build() {
cd "$_builddir"
autoreconf -v --install
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@ -44,9 +37,14 @@ build() {
}
package() {
cd "$_builddir"
cd "$builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
}
check() {
cd "$builddir"
make check
}
sha512sums="5d18e5ff493fbc4f6f1efe952812c1acd3087e855a2a9f2c99f3b2606cfa40a20b83e2d0c736e12b453b47f7ff7746069a1b6718d842d1a8f73b00d5c4c4a93f x11vnc-0.9.14.tar.gz
5e797f86717f312bb3d227df6b1493723bde4fae8c16591334237701ab0e43a550391aba4b82435d301e95b7cc2050315537549ca717eed3156475c27b8c5ad6 libressl.patch"