diff options
Diffstat (limited to 'testing/libx11')
-rw-r--r-- | testing/libx11/PKGBUILD | 38 | ||||
-rw-r--r-- | testing/libx11/add-define-XK_SINHALA.patch | 25 | ||||
-rw-r--r-- | testing/libx11/xorg.sh | 15 |
3 files changed, 78 insertions, 0 deletions
diff --git a/testing/libx11/PKGBUILD b/testing/libx11/PKGBUILD new file mode 100644 index 000000000..dcb20d9e6 --- /dev/null +++ b/testing/libx11/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 117498 2011-04-04 08:36:52Z jgc $ +# Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgname=libx11 +pkgver=1.4.2 +pkgrel=2 +pkgdesc="X11 client-side library" +arch=(i686 x86_64) +url="http://xorg.freedesktop.org/" +depends=('libxcb' 'xproto' 'kbproto') +makedepends=('xorg-util-macros' 'xextproto' 'xtrans' 'inputproto') +options=('!libtool') +license=('custom') +source=(${url}/releases/individual/lib/libX11-${pkgver}.tar.bz2 + add-define-XK_SINHALA.patch + xorg.sh) +sha1sums=('c93fc44dcc028319bee76f3e629ec43cfce42673' + '4f5ccff733042a6ea0fe41082903c332336a173c' + '4b756387426afb2a5bb7a155631ec42348abf5c1') + +build() { + cd "${srcdir}/libX11-${pkgver}" + patch -Np1 -i "${srcdir}/add-define-XK_SINHALA.patch" + ./configure --prefix=/usr --disable-static --disable-xf86bigfont + make + make check +} + +package() { + cd "${srcdir}/libX11-${pkgver}" + make DESTDIR="${pkgdir}" install + + install -m755 -d "${pkgdir}/etc/profile.d" + install -m755 "${srcdir}/xorg.sh" "${pkgdir}/etc/profile.d/" + + install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" +} diff --git a/testing/libx11/add-define-XK_SINHALA.patch b/testing/libx11/add-define-XK_SINHALA.patch new file mode 100644 index 000000000..93a9f1f44 --- /dev/null +++ b/testing/libx11/add-define-XK_SINHALA.patch @@ -0,0 +1,25 @@ +From 25eb76b3d2726f2f1de759901971ae53b2539dc4 Mon Sep 17 00:00:00 2001 +From: Harshula Jayasuriya <harshula@gmail.com> +Date: Mon, 21 Mar 2011 14:49:37 +0000 +Subject: Add #define XK_SINHALA + +Add #define XK_SINHALA so that the Sinhala keysyms can be used by +the lk xkb keymap. + +Signed-off-by: Harshula Jayasuriya <harshula@gmail.com> +Reviewed-by: Daniel Stone <daniel@fooishbar.org> +--- +diff --git a/src/KeyBind.c b/src/KeyBind.c +index ac25ce2..221cedd 100644 +--- a/src/KeyBind.c ++++ b/src/KeyBind.c +@@ -44,6 +44,7 @@ in this Software without prior written authorization from The Open Group. + #define XK_CAUCASUS + #define XK_VIETNAMESE + #define XK_XKB_KEYS ++#define XK_SINHALA + #include <X11/keysymdef.h> + #include <stdio.h> + +-- +cgit v0.8.3-6-g21f6 diff --git a/testing/libx11/xorg.sh b/testing/libx11/xorg.sh new file mode 100644 index 000000000..e1de6866c --- /dev/null +++ b/testing/libx11/xorg.sh @@ -0,0 +1,15 @@ +export XDG_DATA_HOME=$HOME/.local/share +export XDG_CONFIG_HOME=$HOME/.config +export XDG_CACHE_HOME=$HOME/.cache + +if [ -z $XDG_DATA_DIRS ]; then + export XDG_DATA_DIRS=/usr/share/:/usr/local/share/ +else + export XDG_DATA_DIRS=/usr/share/:/usr/local/share/:$XDG_DATA_DIRS +fi + +if [ -z $XDG_CONFIG_DIRS ]; then + export XDG_CONFIG_DIRS=/etc/xdg +else + export XDG_CONFIG_DIRS=/etc/xdg:$XDG_CONFIG_DIRS +fi |