52 lines
1.4 KiB
Bash
52 lines
1.4 KiB
Bash
# Template file for 'turbovnc'
|
|
pkgname=turbovnc
|
|
version=3.0.2
|
|
revision=2
|
|
build_style=cmake
|
|
configure_args="-DCMAKE_INSTALL_JAVADIR=/usr/lib/turbovnc
|
|
-DTJPEG_LIBRARY=${XBPS_CROSS_BASE}/usr/lib/libturbojpeg.so
|
|
-DTVNC_SYSTEMLIBS=ON -DTVNC_BUILDWEBSERVER=OFF"
|
|
hostmakedepends="openjdk17"
|
|
makedepends="bzip2-devel freetype-devel libjpeg-turbo-devel libX11-devel
|
|
libXext-devel libXi-devel openssl-devel pam-devel zlib-devel"
|
|
depends="perl"
|
|
short_desc="Optimized version of TightVNC VNC client and server"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://turbovnc.org"
|
|
distfiles="${SOURCEFORGE_SITE}/turbovnc/${pkgname}-${version}.tar.gz"
|
|
checksum=616dc72ce52351b70a239c2f464c83136e6143a23c7d316e3b29f68ea71c9949
|
|
conf_files="/etc/*.conf"
|
|
conflicts="tigervnc>=0"
|
|
|
|
# Need this to make <sys/socket.h> define struct ucred with musl
|
|
CFLAGS="-D_GNU_SOURCE"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
makedepends+=" openjdk17"
|
|
fi
|
|
|
|
pre_configure() {
|
|
. /etc/profile.d/jdk.sh
|
|
}
|
|
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/etc/sysconfig
|
|
rm -rf ${DESTDIR}/etc/init.d
|
|
rm ${DESTDIR}/usr/share/man/man1/Xserver.1
|
|
mv ${DESTDIR}/usr/lib/turbovnc/README.md \
|
|
${DESTDIR}/usr/share/doc/TurboVNC/README-vncviewer.md
|
|
}
|
|
|
|
turbovnc-viewer_package() {
|
|
short_desc+=" - viewer"
|
|
depends="openjdk17"
|
|
conflicts="tigervnc>=0"
|
|
pkg_install() {
|
|
vmove usr/bin/vncviewer
|
|
vmove usr/lib
|
|
vmove usr/share/doc/TurboVNC/README-vncviewer.md
|
|
vmove usr/share/man/man1/vncviewer.1
|
|
}
|
|
}
|