# Contributor: Sergei Lukin # Maintainer: Natanael Copa pkgname=libvncserver pkgver=0.9.14 pkgrel=0 pkgdesc="Library to make writing a vnc server easy" url="https://libvncserver.sourceforge.net/" arch="all" license="GPL-2.0-or-later" depends_dev=" libgcrypt-dev libjpeg-turbo-dev libpng-dev libice-dev libx11-dev libxdamage-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxrandr-dev libxtst-dev openssl-dev>3 lzo-dev " makedepends="$depends_dev cmake samurai" subpackages="$pkgname-dev" source="https://github.com/LibVNC/libvncserver/archive/LibVNCServer-$pkgver.tar.gz" # secfixes: # 0.9.13-r5: # - CVE-2020-29260 # 0.9.13-r0: # - CVE-2019-20839 # - CVE-2019-20840 # - CVE-2020-14397 # - CVE-2020-14399 # - CVE-2020-14400 # - CVE-2020-14401 # - CVE-2020-14402 # - CVE-2020-14403 # - CVE-2020-14404 # - CVE-2020-14405 # - CVE-2020-25708 # 0.9.12-r1: # - CVE-2019-15681 # 0.9.11-r2: # - CVE-2018-7225 # 0.9.11-r0: # - CVE-2016-9941 # - CVE-2016-9942 builddir="$srcdir"/libvncserver-LibVNCServer-$pkgver build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=ON \ -DWITH_ZLIB=ON \ -DWITH_LZO=ON \ -DWITH_JPEG=ON \ -DWITH_PNG=ON \ -DWITH_SDL=ON \ -DWITH_THREADS=ON \ -DWITH_GNUTLS=ON \ -DWITH_OPENSSL=ON \ -DWITH_SYSTEMD=OFF \ -DWITH_GCRYPT=ON \ -DWITH_FFMPEG=ON \ -DWITH_WEBSOCKETS=ON \ -DWITH_SASL=ON cmake --build build } check() { ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 8a0a58e355154cbe1e5807864dc874b063c5e5f5e20d64ae541d49d51b654a35ca9c625adc5c303b6570fa79c19f82d87a37612f9801b453ccf862bd77c06fcc LibVNCServer-0.9.14.tar.gz "