summaryrefslogtreecommitdiff
path: root/user/libvncserver/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-15 23:46:58 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-15 23:46:58 -0500
commit26af5fd84f412b1311deb2fcba051d2068b974e0 (patch)
treebd7e631f50cd2922c9c4680233e55e8da4aa93e8 /user/libvncserver/APKBUILD
parent5a7a61916e6c530871467e9aecee5985f2e415a8 (diff)
downloadpackages-26af5fd84f412b1311deb2fcba051d2068b974e0.tar.gz
packages-26af5fd84f412b1311deb2fcba051d2068b974e0.tar.bz2
packages-26af5fd84f412b1311deb2fcba051d2068b974e0.tar.xz
packages-26af5fd84f412b1311deb2fcba051d2068b974e0.zip
user/libvncserver: pull in, fix up
Diffstat (limited to 'user/libvncserver/APKBUILD')
-rw-r--r--user/libvncserver/APKBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/user/libvncserver/APKBUILD b/user/libvncserver/APKBUILD
new file mode 100644
index 000000000..324da7fcb
--- /dev/null
+++ b/user/libvncserver/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=libvncserver
+pkgver=0.9.11
+pkgrel=1
+pkgdesc="Library to make writing a vnc server easy"
+url="https://libvnc.github.io/"
+arch="all"
+license="GPL-2.0+"
+depends=""
+depends_dev="libgcrypt-dev libjpeg-turbo-dev gnutls-dev libpng-dev
+ libice-dev libx11-dev libxdamage-dev libxext-dev libxfixes-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
+ "
+builddir="$srcdir"/libvncserver-LibVNCServer-$pkgver
+
+# secfixes:
+# 0.9.11-r0:
+# - 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
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+ test/tjunittest
+}
+
+package() {
+ cd "$builddir"
+ make install DESTDIR="$pkgdir"
+}
+
+sha512sums="e473c081b68dd3cdd96a1756b4f4945ece79d3c8e4cef62140be1699671555fc16d3080e81d764197a14ea83203ffcd0e18c3cc182e012d036e3faae943003fb LibVNCServer-0.9.11.tar.gz"