PKGBUILDs/community/tigervnc/PKGBUILD

78 lines
2.7 KiB
Bash
Raw Normal View History

2013-07-08 17:44:40 +00:00
# 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
pkgname=tigervnc
2015-07-13 11:44:05 +00:00
pkgver=1.5.0
2015-12-10 04:55:18 +00:00
pkgrel=3
2015-11-25 19:12:53 +00:00
_xorgver=1.18.0
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'
2015-03-06 12:35:26 +00:00
'libgl' 'libgcrypt' 'perl' 'libxdamage')
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')
2014-12-15 18:26:05 +00:00
optdepends=('mesa: for OpenGL functionality in Xvnc')
2013-07-08 17:44:40 +00:00
conflicts=('tightvnc')
2015-03-02 12:06:22 +00:00
source=($pkgname-$pkgver.tar.gz::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
2015-11-25 19:12:53 +00:00
xorg118.patch)
2015-07-13 11:44:05 +00:00
md5sums=('b11cc4c4d5249b9b8e355ee6f47ec4fe'
2015-11-25 19:12:53 +00:00
'3c1c1057d3ad27380d8dd87ffcc182cd'
2015-04-19 13:43:06 +00:00
'1aad8f06504b3e29a24ccfbaab617973'
2015-04-21 21:07:01 +00:00
'b200d83c60e80c6f9693ea19a2d9f5b0'
2013-07-22 15:27:38 +00:00
'22f1523a0eca56ad79cfabd0db6e2cf6'
2015-11-25 19:12:53 +00:00
'2fd32181679077eb7f7ca06cf25f443f')
2013-07-08 17:44:40 +00:00
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
2013-07-22 15:27:38 +00:00
2015-11-25 19:12:53 +00:00
patch -Np1 -i ${srcdir}/xorg118.patch
2013-07-22 15:27:38 +00:00
patch -Np1 -i ${srcdir}/gethomedir.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}/* .
2015-07-13 11:44:05 +00:00
patch -Np1 -i ../xserver117.patch
2013-07-08 17:44:40 +00:00
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
2014-07-30 18:20:01 +00:00
2015-11-25 19:12:53 +00:00
[ "$CARCH" == "armv7h" ] && CFLAGS+=" -fPIC" && CXXFLAGS+=" -fPIC"
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 \
2015-06-29 12:14:28 +00:00
--disable-static --without-dtrace \
2013-07-08 17:44:40 +00:00
--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
}