summaryrefslogtreecommitdiff
path: root/user/libvncserver/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-04-17 21:03:45 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-04-17 21:03:45 +0000
commitc7882b6ef98cce115ac0ac5bb93fac0c10e12860 (patch)
tree808cd6848037c06ca151779ca7557539c86e7ff7 /user/libvncserver/APKBUILD
parent12ec9c0e396d085d11dae3753289798133bf9e36 (diff)
downloadpackages-c7882b6ef98cce115ac0ac5bb93fac0c10e12860.tar.gz
packages-c7882b6ef98cce115ac0ac5bb93fac0c10e12860.tar.bz2
packages-c7882b6ef98cce115ac0ac5bb93fac0c10e12860.tar.xz
packages-c7882b6ef98cce115ac0ac5bb93fac0c10e12860.zip
user/libvncserver: bump to 0.9.12, convert to CMake
Diffstat (limited to 'user/libvncserver/APKBUILD')
-rw-r--r--user/libvncserver/APKBUILD35
1 files changed, 15 insertions, 20 deletions
diff --git a/user/libvncserver/APKBUILD b/user/libvncserver/APKBUILD
index 324da7fcb..0801da573 100644
--- a/user/libvncserver/APKBUILD
+++ b/user/libvncserver/APKBUILD
@@ -2,8 +2,8 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libvncserver
-pkgver=0.9.11
-pkgrel=1
+pkgver=0.9.12
+pkgrel=0
pkgdesc="Library to make writing a vnc server easy"
url="https://libvnc.github.io/"
arch="all"
@@ -14,8 +14,7 @@ depends_dev="libgcrypt-dev libjpeg-turbo-dev gnutls-dev libpng-dev
libxi-dev libxinerama-dev libxrandr-dev libxtst-dev"
makedepends="$depends_dev autoconf automake libtool"
subpackages="$pkgname-dev"
-source="https://github.com/LibVNC/libvncserver/archive/LibVNCServer-$pkgver.tar.gz
- "
+source="https://github.com/LibVNC/libvncserver/archive/LibVNCServer-$pkgver.tar.gz"
builddir="$srcdir"/libvncserver-LibVNCServer-$pkgver
# secfixes:
@@ -23,31 +22,27 @@ builddir="$srcdir"/libvncserver-LibVNCServer-$pkgver
# - CVE-2016-9941
# - CVE-2016-9942
-prepare() {
- cd "$builddir"
- default_prepare
- ./autogen.sh
-}
-
build() {
- cd "$builddir"
- ./configure \
- --build=$CBUILD \
- --host=$CHOST \
- --prefix=/usr \
- --disable-static
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS}
make
}
check() {
- cd "$builddir"
- make check
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
test/tjunittest
}
package() {
- cd "$builddir"
make install DESTDIR="$pkgdir"
}
-sha512sums="e473c081b68dd3cdd96a1756b4f4945ece79d3c8e4cef62140be1699671555fc16d3080e81d764197a14ea83203ffcd0e18c3cc182e012d036e3faae943003fb LibVNCServer-0.9.11.tar.gz"
+sha512sums="60ff1cc93a937d6f8f97449bc58b763095846207112f7b1b3c43eb2d74448b595d6da949903a764bd484ee54e38ff6277e882adbe965dd6d26ba15ef6ff6fcb8 LibVNCServer-0.9.12.tar.gz"