[arch-commits] Commit in tigervnc/repos (4 files)

Felix Yan felixonmars at archlinux.org
Sun Jun 30 10:08:59 UTC 2019


    Date: Sunday, June 30, 2019 @ 10:08:58
  Author: felixonmars
Revision: 486235

archrelease: copy trunk to community-staging-x86_64

Added:
  tigervnc/repos/community-staging-x86_64/
  tigervnc/repos/community-staging-x86_64/PKGBUILD
    (from rev 486233, tigervnc/trunk/PKGBUILD)
  tigervnc/repos/community-staging-x86_64/vncserver.service
    (from rev 486233, tigervnc/trunk/vncserver.service)
  tigervnc/repos/community-staging-x86_64/vncviewer.desktop
    (from rev 486233, tigervnc/trunk/vncviewer.desktop)

-------------------+
 PKGBUILD          |   67 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 vncserver.service |   29 ++++++++++++++++++++++
 vncviewer.desktop |    9 ++++++
 3 files changed, 105 insertions(+)

Copied: tigervnc/repos/community-staging-x86_64/PKGBUILD (from rev 486233, tigervnc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-06-30 10:08:58 UTC (rev 486235)
@@ -0,0 +1,67 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Uroš Vampl <mobile.leecher at gmail dot com>
+
+pkgname=tigervnc
+pkgver=1.9.0
+pkgrel=3
+_xorgver=1.20.5
+pkgdesc="Suite of VNC servers and clients. Based on the VNC 4 branch of TightVNC."
+arch=('x86_64')
+url="http://www.tigervnc.org"
+license=('GPL')
+depends=('fltk' 'pam' 'gnutls' 'libjpeg-turbo' 'libxtst' 'pixman'
+	 'xorg-xauth' 'xorg-xsetroot' 'xkeyboard-config' 'xorg-xkbcomp'
+	 'libgl' 'libgcrypt' 'perl' 'libxdamage' 'libxfont2' 'libdrm')
+makedepends=('cmake' 'nasm' 'xorg-font-util' 'xorg-util-macros' 'bigreqsproto'
+	     'compositeproto' 'damageproto' 'randrproto' 'resourceproto'
+	     'scrnsaverproto' 'videoproto' 'xcmiscproto' 'xf86vidmodeproto'
+	     'xtrans' 'glproto' 'dri2proto' 'dri3proto' 'presentproto'
+	     'mesa' 'imagemagick' 'java-environment=8')
+optdepends=('mesa: for OpenGL functionality in Xvnc')
+conflicts=('tightvnc')
+source=($pkgname-$pkgver.tar.gz::https://github.com/TigerVNC/tigervnc/archive/v${pkgver}.tar.gz
+	ftp://ftp.freedesktop.org/pub/xorg/individual/xserver/xorg-server-${_xorgver}.tar.bz2
+	vncserver.service
+	vncviewer.desktop)
+sha256sums=('f15ced8500ec56356c3bf271f52e58ed83729118361c7103eab64a618441f740'
+            'a81d8243f37e75a03d4f8c55f96d0bc25802be6ec45c3bfa5cb614c6d01bac9d'
+            '80f8fc7598d05e645ae73bc3371bbdededf07136a9f024ce6ebbfe469335b16e'
+            '2ada7da1a926d78f11d2dd8ec376ac5877d2ce2bbb57a99526c13d8fcae6ddd7')
+
+prepare() {
+  cd "$srcdir"/${pkgname}-${pkgver}
+  cd unix/xserver
+  cp -r "$srcdir"/xorg-server-${_xorgver}/* .
+  patch -Np1 -i ../xserver120.patch
+}
+
+build() {
+  cd "$srcdir"/${pkgname}-${pkgver}
+
+  cmake -G "Unix Makefiles" \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_JAVA=TRUE
+  make
+
+  cd unix/xserver
+  autoreconf -fiv
+  CFLAGS="$CFLAGS -I/usr/include/libdrm" ./configure --prefix=/usr \
+	--disable-static --without-dtrace \
+	--disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
+	--disable-xwin --disable-xephyr --disable-kdrive --disable-xwayland \
+	--disable-config-hal --disable-config-udev --with-pic \
+	--disable-unit-tests --disable-devel-docs --disable-selective-werror \
+	--disable-dri --enable-dri2 --enable-dri3 --enable-glx
+  make
+}
+
+package() {
+  cd "$srcdir"/${pkgname}-${pkgver}
+  make DESTDIR="$pkgdir" install
+  cd unix/xserver/hw/vnc
+  make DESTDIR="$pkgdir" install
+  install -Dm0644 "$srcdir"/${pkgname}-${pkgver}/contrib/systemd/user/vncserver at .service \
+    "$pkgdir"/usr/lib/systemd/user/vncserver at .service
+  install -Dm0644 "$srcdir"/vncserver.service "$pkgdir"/usr/lib/systemd/system/vncserver.service
+  install -Dm0644 "$srcdir"/vncviewer.desktop "$pkgdir"/usr/share/applications/vncviewer.desktop
+}

Copied: tigervnc/repos/community-staging-x86_64/vncserver.service (from rev 486233, tigervnc/trunk/vncserver.service)
===================================================================
--- community-staging-x86_64/vncserver.service	                        (rev 0)
+++ community-staging-x86_64/vncserver.service	2019-06-30 10:08:58 UTC (rev 486235)
@@ -0,0 +1,29 @@
+# The vncserver service unit file
+#
+# 1. Copy this file to /etc/systemd/system/vncserver@:<display>.service
+# 2. Edit User=
+#   ("User=foo")
+# 3. Edit  and vncserver parameters appropriately
+#   ("/usr/bin/vncserver %i -arg1 -arg2 -argn")
+# 4. Run `systemctl --system daemon-reload`
+# 5. Run `systemctl enable vncserver@:<display>.service`
+#
+# DO NOT RUN THIS SERVICE if your local area network is untrusted! 
+#
+# See the wiki page for more on security
+# https://wiki.archlinux.org/index.php/Vncserver
+
+[Unit]
+Description=Remote desktop service (VNC)
+After=syslog.target network.target
+
+[Service]
+Type=simple
+User=
+
+ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i >/dev/null 2>&1 || true'
+ExecStart=/usr/bin/vncserver -fg %i
+ExecStop=/usr/bin/vncserver -kill %i
+
+[Install]
+WantedBy=multi-user.target

Copied: tigervnc/repos/community-staging-x86_64/vncviewer.desktop (from rev 486233, tigervnc/trunk/vncviewer.desktop)
===================================================================
--- community-staging-x86_64/vncviewer.desktop	                        (rev 0)
+++ community-staging-x86_64/vncviewer.desktop	2019-06-30 10:08:58 UTC (rev 486235)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=TigerVNC Viewer
+Comment=VNC client
+Exec=/usr/bin/vncviewer
+Icon=tigervnc
+Terminal=false
+StartupNotify=false
+Categories=Network;RemoteAccess;


More information about the arch-commits mailing list