PKGBUILDs/community/tigervnc/PKGBUILD

73 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
2017-05-16 18:19:24 +00:00
pkgver=1.8.0
2017-05-23 22:57:18 +00:00
pkgrel=2
2017-05-16 18:19:24 +00:00
_xorgver=1.19.3
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'
2017-05-16 18:19:24 +00:00
'libgl' 'libgcrypt' 'perl' 'libxdamage' 'libxfont2')
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'
2017-05-23 22:57:18 +00:00
'mesa' 'imagemagick' 'java-environment=8')
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
2017-05-16 18:19:24 +00:00
vncviewer.desktop)
sha256sums=('9951dab0e10f8de03996ec94bec0d938da9f36d48dca8c954e8bbc95c16338f8'
'677a8166e03474719238dfe396ce673c4234735464d6dadf2959b600d20e5a98'
2017-01-23 13:34:58 +00:00
'80f8fc7598d05e645ae73bc3371bbdededf07136a9f024ce6ebbfe469335b16e'
2017-05-16 18:19:24 +00:00
'2ada7da1a926d78f11d2dd8ec376ac5877d2ce2bbb57a99526c13d8fcae6ddd7')
2013-07-08 17:44:40 +00:00
prepare() {
2017-01-23 13:34:58 +00:00
cd "$srcdir"/${pkgname}-${pkgver}
2014-07-30 18:20:01 +00:00
cd unix/xserver
2017-01-23 13:34:58 +00:00
cp -r "$srcdir"/xorg-server-${_xorgver}/* .
2017-05-16 18:19:24 +00:00
patch -Np1 -i ../xserver119.patch
2013-07-08 17:44:40 +00:00
}
build() {
2017-01-23 13:34:58 +00:00
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"
2017-05-23 22:57:18 +00:00
cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_JAVA=TRUE
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 \
2017-05-23 22:57:18 +00:00
--disable-dri --enable-dri2 --enable-dri3 --enable-glx
2013-07-08 17:44:40 +00:00
make
}
package() {
2017-01-23 13:34:58 +00:00
cd "$srcdir"/${pkgname}-${pkgver}
make DESTDIR="$pkgdir" install
2013-07-08 17:44:40 +00:00
cd unix/xserver/hw/vnc
2017-01-23 13:34:58 +00:00
make DESTDIR="$pkgdir" install
install -Dm0644 "$srcdir"/${pkgname}-${pkgver}/contrib/systemd/user/vncserver@.service \
"$pkgdir"/usr/lib/systemd/user/vncserver@.service
install -Dm0644 "$srcdir"/vncserver.service "$pkgdir"/usr/lib/systemd/system/vncserver.service
install -Dm0644 "$srcdir"/vncviewer.desktop "$pkgdir"/usr/share/applications/vncviewer.desktop
2013-07-08 17:44:40 +00:00
}