2013-07-08 17:44:40 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
# Maintainer: Uroš Vampl <mobile.leecher at gmail dot com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - use -fPIC for v7
|
2014-11-24 19:03:23 +00:00
|
|
|
# ALARM: David Beauchamp <david@archlinuxarm.org>
|
|
|
|
# - remove mesa-dri from optdepends
|
2013-07-08 17:44:40 +00:00
|
|
|
|
|
|
|
pkgname=tigervnc
|
2014-11-24 19:03:23 +00:00
|
|
|
pkgver=1.3.90
|
|
|
|
pkgrel=1
|
|
|
|
_xorgver=1.16.2
|
2014-07-30 18:20:01 +00:00
|
|
|
pkgdesc="Suite of VNC servers and clients. Based on the VNC 4 branch of TightVNC."
|
2013-07-08 17:44:40 +00:00
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.tigervnc.org"
|
|
|
|
license=('GPL')
|
2013-07-22 15:27:38 +00:00
|
|
|
depends=('fltk' 'pam' 'gnutls' 'libjpeg-turbo' 'libxtst' 'libxfont' 'pixman'
|
|
|
|
'xorg-xauth' 'xorg-xsetroot' 'xkeyboard-config' 'xorg-xkbcomp'
|
2014-11-24 19:03:23 +00:00
|
|
|
'libgcrypt' 'perl' )
|
2013-07-08 17:44:40 +00:00
|
|
|
makedepends=('cmake' 'nasm' 'xorg-font-util' 'xorg-util-macros' 'bigreqsproto'
|
|
|
|
'compositeproto' 'damageproto' 'randrproto' 'resourceproto'
|
|
|
|
'scrnsaverproto' 'videoproto' 'xcmiscproto' 'xf86vidmodeproto'
|
2014-07-30 18:20:01 +00:00
|
|
|
'xtrans' 'glproto' 'dri2proto' 'dri3proto' 'presentproto'
|
2014-11-24 19:03:23 +00:00
|
|
|
'mesa' 'imagemagick')
|
|
|
|
optdepends=('libgl: for OpenGL functionality in Xvnc')
|
2013-07-08 17:44:40 +00:00
|
|
|
conflicts=('tightvnc')
|
2014-11-24 19:03:23 +00:00
|
|
|
source=(https://github.com/TigerVNC/tigervnc/archive/v${pkgver}.tar.gz
|
2013-07-08 17:44:40 +00:00
|
|
|
ftp://ftp.freedesktop.org/pub/xorg/individual/xserver/xorg-server-${_xorgver}.tar.bz2
|
|
|
|
vncserver.service
|
|
|
|
vncviewer.desktop
|
2013-07-22 15:27:38 +00:00
|
|
|
gethomedir.patch
|
2014-11-24 19:03:23 +00:00
|
|
|
getmaster.patch)
|
|
|
|
md5sums=('d1aa5653d3b4e8a04b33e01f11d4fde0'
|
|
|
|
'89620960b13515db8d0a8dbb92a1378a'
|
|
|
|
'87678d73cc7c3fcd12797da43a0d061e'
|
2013-07-22 15:27:38 +00:00
|
|
|
'71cac0fb9701b0a041430f0fddfe00c8'
|
|
|
|
'22f1523a0eca56ad79cfabd0db6e2cf6'
|
2014-11-24 19:03:23 +00:00
|
|
|
'e056a2502dfe0cb3b02e08cab689482f')
|
2013-07-08 17:44:40 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
2013-07-22 15:27:38 +00:00
|
|
|
|
|
|
|
patch -Np1 -i ${srcdir}/gethomedir.patch
|
|
|
|
patch -Np1 -i ${srcdir}/getmaster.patch
|
2014-07-30 18:20:01 +00:00
|
|
|
sed -i 's/iconic/nowin/' unix/vncserver
|
|
|
|
|
|
|
|
cd unix/xserver
|
|
|
|
cp -r ${srcdir}/xorg-server-${_xorgver}/* .
|
2014-11-24 19:03:23 +00:00
|
|
|
patch -Np1 -i ../xserver116.patch
|
2013-07-08 17:44:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
if [ "$CARCH" == "armv7h" ]; then
|
|
|
|
CFLAGS="$CFLAGS -fPIC"
|
|
|
|
CXXFLAGS="$CXXFLAGS -fPIC"
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
2014-07-30 18:20:01 +00:00
|
|
|
|
2013-07-22 15:27:38 +00:00
|
|
|
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr
|
2013-07-08 17:44:40 +00:00
|
|
|
make
|
|
|
|
|
|
|
|
cd unix/xserver
|
|
|
|
autoreconf -fiv
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--disable-static --disable-xinerama --without-dtrace \
|
|
|
|
--disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
|
2014-07-30 18:20:01 +00:00
|
|
|
--disable-xwin --disable-xephyr --disable-kdrive --disable-xwayland \
|
|
|
|
--disable-config-hal --disable-config-udev --with-pic \
|
2013-07-08 17:44:40 +00:00
|
|
|
--disable-unit-tests --disable-devel-docs --disable-selective-werror \
|
2014-08-05 10:54:06 +00:00
|
|
|
--disable-dri --enable-dri2 --enable-dri3 --enable-glx --enable-glx-tls
|
2013-07-08 17:44:40 +00:00
|
|
|
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
|
|
|
|
}
|