mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-17 23:34:07 +00:00
community/tigervnc to 1.3.0-2
This commit is contained in:
parent
129ca0eb5a
commit
fbcda3a20b
4 changed files with 134 additions and 15 deletions
|
@ -7,36 +7,42 @@
|
|||
|
||||
pkgname=tigervnc
|
||||
pkgver=1.3.0
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
_xorgver=1.14.2
|
||||
pkgdesc="suite of VNC servers and clients. VNC 4 branch of TightVNC."
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://www.tigervnc.org"
|
||||
license=('GPL')
|
||||
depends=('pam' 'gnutls' 'libjpeg-turbo' 'libxft' 'libxinerama' 'libxcursor'
|
||||
'libxtst' 'libxfont' 'pixman' 'xorg-xauth' 'xorg-xsetroot'
|
||||
'xkeyboard-config' 'libgl' 'libgcrypt' 'perl' 'xorg-xkbcomp'
|
||||
'fltk')
|
||||
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' 'mesa' 'glproto' 'dri2proto' 'imagemagick' 'librsvg')
|
||||
'xtrans' 'mesa' 'glproto' 'dri2proto' 'imagemagick')
|
||||
options=(!libtool)
|
||||
conflicts=('tightvnc')
|
||||
source=(http://downloads.sourceforge.net/project/tigervnc/tigervnc/$pkgver/tigervnc-$pkgver.tar.bz2
|
||||
ftp://ftp.freedesktop.org/pub/xorg/individual/xserver/xorg-server-${_xorgver}.tar.bz2
|
||||
vncserver.service
|
||||
vncviewer.desktop
|
||||
xserver114.patch)
|
||||
xserver114.patch
|
||||
gethomedir.patch
|
||||
getmaster.patch)
|
||||
md5sums=('a5158228e64d14496821a39bf3851f1b'
|
||||
'5d36a6483e8e301875131e8302c67727'
|
||||
'0903d5a0dfa38e0b04964505b644585c'
|
||||
'15c0405f920c3dac250692e8922578d1'
|
||||
'928faf837ba5b1b34283f9f018df2f5e')
|
||||
'71cac0fb9701b0a041430f0fddfe00c8'
|
||||
'928faf837ba5b1b34283f9f018df2f5e'
|
||||
'22f1523a0eca56ad79cfabd0db6e2cf6'
|
||||
'e056a2502dfe0cb3b02e08cab689482f')
|
||||
|
||||
prepare() {
|
||||
cd ${srcdir}/${pkgname}-${pkgver}
|
||||
cp -r ${srcdir}/xorg-server-${_xorgver}/* unix/xserver
|
||||
|
||||
patch -Np1 -i ${srcdir}/gethomedir.patch
|
||||
patch -Np1 -i ${srcdir}/getmaster.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -46,12 +52,11 @@ build() {
|
|||
fi
|
||||
|
||||
cd ${srcdir}/${pkgname}-${pkgver}
|
||||
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr -DUSE_INCLUDED_FLTK=yes
|
||||
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr
|
||||
make
|
||||
make -C media
|
||||
|
||||
cd unix/xserver
|
||||
patch -Np1 -i ${srcdir}/xserver114.patch
|
||||
patch -Np1 -i ../xserver114.patch
|
||||
autoreconf -fiv
|
||||
./configure --prefix=/usr \
|
||||
--disable-static --disable-xinerama --without-dtrace \
|
||||
|
@ -70,7 +75,5 @@ package() {
|
|||
make DESTDIR=${pkgdir} install
|
||||
sed -i 's/iconic/nowin/' ${pkgdir}/usr/bin/vncserver
|
||||
install -Dm0644 $srcdir/vncserver.service $pkgdir/usr/lib/systemd/system/vncserver.service
|
||||
install -dm0755 $pkgdir/usr/share/icons
|
||||
install -m0644 ${srcdir}/${pkgname}-${pkgver}/media/icons/* $pkgdir/usr/share/icons/
|
||||
install -Dm0644 $srcdir/vncviewer.desktop $pkgdir/usr/share/applications/vncviewer.desktop
|
||||
}
|
||||
|
|
20
community/tigervnc/gethomedir.patch
Normal file
20
community/tigervnc/gethomedir.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
diff -ur tigervnc-1.2.0.orig/unix/xserver/hw/vnc/Makefile.am tigervnc-1.2.0/unix/xserver/hw/vnc/Makefile.am
|
||||
--- tigervnc-1.2.0.orig/unix/xserver/hw/vnc/Makefile.am 2011-10-31 09:14:40.000000000 +0100
|
||||
+++ tigervnc-1.2.0/unix/xserver/hw/vnc/Makefile.am 2012-09-06 19:44:04.431123087 +0200
|
||||
@@ -5,6 +5,7 @@
|
||||
RDR_LIB=$(LIB_DIR)/rdr/librdr.la
|
||||
NETWORK_LIB=$(LIB_DIR)/network/libnetwork.la
|
||||
XREGION_LIB=$(LIB_DIR)/Xregion/libXregion.la
|
||||
+OS_LIB=$(LIB_DIR)/os/libos.la
|
||||
COMMON_LIBS=$(NETWORK_LIB) $(RFB_LIB) $(RDR_LIB) $(XREGION_LIB)
|
||||
|
||||
noinst_LTLIBRARIES = libvnccommon.la
|
||||
@@ -55,7 +56,7 @@
|
||||
|
||||
libvnc_la_LDFLAGS = -module -avoid-version
|
||||
|
||||
-libvnc_la_LIBADD = libvnccommon.la $(COMMON_LIBS)
|
||||
+libvnc_la_LIBADD = libvnccommon.la $(COMMON_LIBS) $(OS_LIB)
|
||||
|
||||
EXTRA_DIST = Xvnc.man
|
||||
|
96
community/tigervnc/getmaster.patch
Normal file
96
community/tigervnc/getmaster.patch
Normal file
|
@ -0,0 +1,96 @@
|
|||
diff -up tigervnc-1.3.0/unix/xserver/hw/vnc/InputXKB.cc.getmaster tigervnc-1.3.0/unix/xserver/hw/vnc/InputXKB.cc
|
||||
--- tigervnc-1.3.0/unix/xserver/hw/vnc/InputXKB.cc.getmaster 2013-07-12 09:30:50.551459439 +0100
|
||||
+++ tigervnc-1.3.0/unix/xserver/hw/vnc/InputXKB.cc 2013-07-12 09:38:31.037480528 +0100
|
||||
@@ -232,10 +232,7 @@ void InputDevice::PrepareInputDevices(vo
|
||||
|
||||
unsigned InputDevice::getKeyboardState(void)
|
||||
{
|
||||
- DeviceIntPtr master;
|
||||
-
|
||||
- master = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT);
|
||||
- return XkbStateFieldFromRec(&master->key->xkbInfo->state);
|
||||
+ return XkbStateFieldFromRec(&keyboardDev->master->key->xkbInfo->state);
|
||||
}
|
||||
|
||||
unsigned InputDevice::getLevelThreeMask(void)
|
||||
@@ -256,7 +253,7 @@ unsigned InputDevice::getLevelThreeMask(
|
||||
return 0;
|
||||
}
|
||||
|
||||
- xkb = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT)->key->xkbInfo->desc;
|
||||
+ xkb = keyboardDev->master->key->xkbInfo->desc;
|
||||
|
||||
act = XkbKeyActionPtr(xkb, keycode, state);
|
||||
if (act == NULL)
|
||||
@@ -281,7 +278,7 @@ KeyCode InputDevice::pressShift(void)
|
||||
if (state & ShiftMask)
|
||||
return 0;
|
||||
|
||||
- xkb = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT)->key->xkbInfo->desc;
|
||||
+ xkb = keyboardDev->master->key->xkbInfo->desc;
|
||||
for (key = xkb->min_key_code; key <= xkb->max_key_code; key++) {
|
||||
XkbAction *act;
|
||||
unsigned char mask;
|
||||
@@ -318,7 +315,7 @@ std::list<KeyCode> InputDevice::releaseS
|
||||
if (!(state & ShiftMask))
|
||||
return keys;
|
||||
|
||||
- master = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT);
|
||||
+ master = keyboardDev->master;
|
||||
xkb = master->key->xkbInfo->desc;
|
||||
for (key = xkb->min_key_code; key <= xkb->max_key_code; key++) {
|
||||
XkbAction *act;
|
||||
@@ -371,7 +368,7 @@ KeyCode InputDevice::pressLevelThree(voi
|
||||
return 0;
|
||||
}
|
||||
|
||||
- xkb = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT)->key->xkbInfo->desc;
|
||||
+ xkb = keyboardDev->master->key->xkbInfo->desc;
|
||||
|
||||
act = XkbKeyActionPtr(xkb, keycode, state);
|
||||
if (act == NULL)
|
||||
@@ -399,7 +396,7 @@ std::list<KeyCode> InputDevice::releaseL
|
||||
if (!(state & mask))
|
||||
return keys;
|
||||
|
||||
- master = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT);
|
||||
+ master = keyboardDev->master;
|
||||
xkb = master->key->xkbInfo->desc;
|
||||
for (key = xkb->min_key_code; key <= xkb->max_key_code; key++) {
|
||||
XkbAction *act;
|
||||
@@ -440,7 +437,7 @@ KeyCode InputDevice::keysymToKeycode(Key
|
||||
if (new_state != NULL)
|
||||
*new_state = state;
|
||||
|
||||
- xkb = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT)->key->xkbInfo->desc;
|
||||
+ xkb = keyboardDev->master->key->xkbInfo->desc;
|
||||
for (key = xkb->min_key_code; key <= xkb->max_key_code; key++) {
|
||||
unsigned int state_out;
|
||||
KeySym dummy;
|
||||
@@ -497,7 +494,7 @@ bool InputDevice::isLockModifier(KeyCode
|
||||
XkbDescPtr xkb;
|
||||
XkbAction *act;
|
||||
|
||||
- xkb = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT)->key->xkbInfo->desc;
|
||||
+ xkb = keyboardDev->master->key->xkbInfo->desc;
|
||||
|
||||
act = XkbKeyActionPtr(xkb, keycode, state);
|
||||
if (act == NULL)
|
||||
@@ -535,7 +532,7 @@ bool InputDevice::isAffectedByNumLock(Ke
|
||||
if (numlock_keycode == 0)
|
||||
return false;
|
||||
|
||||
- xkb = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT)->key->xkbInfo->desc;
|
||||
+ xkb = keyboardDev->master->key->xkbInfo->desc;
|
||||
|
||||
act = XkbKeyActionPtr(xkb, numlock_keycode, state);
|
||||
if (act == NULL)
|
||||
@@ -569,7 +566,7 @@ KeyCode InputDevice::addKeysym(KeySym ke
|
||||
KeySym *syms;
|
||||
KeySym upper, lower;
|
||||
|
||||
- master = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT);
|
||||
+ master = keyboardDev->master;
|
||||
xkb = master->key->xkbInfo->desc;
|
||||
for (key = xkb->max_key_code; key >= xkb->min_key_code; key--) {
|
||||
if (XkbKeyNumGroups(xkb, key) == 0)
|
|
@ -4,7 +4,7 @@ Type=Application
|
|||
Name=TigerVNC viewer
|
||||
Comment=TigerVNC viewer
|
||||
Exec=/usr/bin/vncviewer
|
||||
Icon=tigervnc_32.png
|
||||
Icon=tigervnc.png
|
||||
Terminal=false
|
||||
StartupNotify=false
|
||||
Categories=Application; Network;
|
||||
|
|
Loading…
Reference in a new issue