mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
72 lines
2.7 KiB
Bash
72 lines
2.7 KiB
Bash
# 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
|
|
pkgver=1.8.0
|
|
pkgrel=3
|
|
_xorgver=1.19.5
|
|
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' 'pixman'
|
|
'xorg-xauth' 'xorg-xsetroot' 'xkeyboard-config' 'xorg-xkbcomp'
|
|
'libgl' 'libgcrypt' 'perl' 'libxdamage' 'libxfont2')
|
|
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=('9951dab0e10f8de03996ec94bec0d938da9f36d48dca8c954e8bbc95c16338f8'
|
|
'18fffa8eb93d06d2800d06321fc0df4d357684d8d714315a66d8dfa7df251447'
|
|
'80f8fc7598d05e645ae73bc3371bbdededf07136a9f024ce6ebbfe469335b16e'
|
|
'2ada7da1a926d78f11d2dd8ec376ac5877d2ce2bbb57a99526c13d8fcae6ddd7')
|
|
|
|
prepare() {
|
|
cd "$srcdir"/${pkgname}-${pkgver}
|
|
cd unix/xserver
|
|
cp -r "$srcdir"/xorg-server-${_xorgver}/* .
|
|
patch -Np1 -i ../xserver119.patch
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir"/${pkgname}-${pkgver}
|
|
|
|
[ "$CARCH" == "armv7h" ] && CFLAGS+=" -fPIC" && CXXFLAGS+=" -fPIC"
|
|
|
|
cmake -G "Unix Makefiles" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DBUILD_JAVA=TRUE
|
|
make
|
|
|
|
cd unix/xserver
|
|
autoreconf -fiv
|
|
./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@.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
|
|
}
|