# $Id$ # Maintainer: Sergej Pupykin # Maintainer: Uroš Vampl # ALARM: Kevin Mihelich # - use -fPIC for v7 pkgname=tigervnc pkgver=1.4.1 pkgrel=1 _xorgver=1.16.2.901 pkgdesc="Suite of VNC servers and clients. Based on the VNC 4 branch of TightVNC." arch=('i686' 'x86_64') url="http://www.tigervnc.org" license=('GPL') depends=('fltk' 'pam' 'gnutls' 'libjpeg-turbo' 'libxtst' 'libxfont' 'pixman' 'xorg-xauth' 'xorg-xsetroot' 'xkeyboard-config' 'xorg-xkbcomp' 'libgl' 'libgcrypt' 'perl' ) 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') optdepends=('mesa: for OpenGL functionality in Xvnc') conflicts=('tightvnc') source=(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 gethomedir.patch getmaster.patch compile_fix.patch) md5sums=('b7ca7852d0477d74e932724c5197b0d6' '82cbcf6755787962e943d8e23495358d' '87678d73cc7c3fcd12797da43a0d061e' '71cac0fb9701b0a041430f0fddfe00c8' '22f1523a0eca56ad79cfabd0db6e2cf6' 'e056a2502dfe0cb3b02e08cab689482f' '557f978305b46b880dacd07461ad8db9') prepare() { cd ${srcdir}/${pkgname}-${pkgver} patch -Np1 -i ${srcdir}/gethomedir.patch patch -Np1 -i ${srcdir}/getmaster.patch # patch -Np1 -i ${srcdir}/compile_fix.patch sed -i 's/iconic/nowin/' unix/vncserver cd unix/xserver cp -r ${srcdir}/xorg-server-${_xorgver}/* . patch -Np1 -i ../xserver116.patch } build() { if [ "$CARCH" == "armv7h" ]; then CFLAGS="$CFLAGS -fPIC" CXXFLAGS="$CXXFLAGS -fPIC" fi cd ${srcdir}/${pkgname}-${pkgver} cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr make cd unix/xserver autoreconf -fiv ./configure --prefix=/usr \ --disable-static --disable-xinerama --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 --enable-glx-tls make } package() { cd ${srcdir}/${pkgname}-${pkgver} make DESTDIR=${pkgdir} install cd unix/xserver/hw/vnc make DESTDIR=${pkgdir} install install -Dm0644 $srcdir/vncserver.service $pkgdir/usr/lib/systemd/system/vncserver.service install -Dm0644 $srcdir/vncviewer.desktop $pkgdir/usr/share/applications/vncviewer.desktop }