summaryrefslogtreecommitdiff
path: root/staging/libx11
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-04 23:14:50 +0000
committerroot <root@rshg054.dnsready.net>2012-02-04 23:14:50 +0000
commitcdc66cc7110e78bf1197f9effc70422114f9341b (patch)
tree26d88200b6a071ffe8e21b7022be19ade43d52e5 /staging/libx11
parentde078a89b9e3a45b6b2e3f0c9d866962e5125ba3 (diff)
Sat Feb 4 23:14:50 UTC 2012
Diffstat (limited to 'staging/libx11')
-rw-r--r--staging/libx11/PKGBUILD41
-rw-r--r--staging/libx11/xorg.csh15
-rw-r--r--staging/libx11/xorg.sh15
3 files changed, 71 insertions, 0 deletions
diff --git a/staging/libx11/PKGBUILD b/staging/libx11/PKGBUILD
new file mode 100644
index 000000000..01a0e6f91
--- /dev/null
+++ b/staging/libx11/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 148563 2012-02-03 17:25:36Z andyrtr $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=libx11
+pkgver=1.4.99.1
+pkgrel=1
+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
+ xorg.sh
+ xorg.csh)
+sha1sums=('317e0112926926a52c13f56f71c1ec9e4540cf4d '
+ '4b756387426afb2a5bb7a155631ec42348abf5c1'
+ '45b0b310776cf5d9a94b4a18a5c63ddad9de6ba8')
+
+build() {
+ cd "${srcdir}/libX11-${pkgver}"
+ ./configure --prefix=/usr --disable-static --disable-xf86bigfont
+ make
+}
+
+package() {
+ cd "${srcdir}/libX11-${pkgver}"
+ make check
+}
+
+package() {
+ cd "${srcdir}/libX11-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ install -m755 -d "${pkgdir}/etc/profile.d"
+ install -m755 "${srcdir}/"xorg.{sh,csh} "${pkgdir}/etc/profile.d/"
+
+ install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
+}
diff --git a/staging/libx11/xorg.csh b/staging/libx11/xorg.csh
new file mode 100644
index 000000000..26c49a222
--- /dev/null
+++ b/staging/libx11/xorg.csh
@@ -0,0 +1,15 @@
+setenv XDG_DATA_HOME ${HOME}/.local/share
+setenv XDG_CONFIG_HOME ${HOME}/.config
+setenv XDG_CACHE_HOME ${HOME}/.cache
+
+if (! ($?XDG_DATA_DIRS) ) then
+ setenv XDG_DATA_DIRS /usr/share/:/usr/local/share/
+else
+ setenv XDG_DATA_DIRS /usr/share/:/usr/local/share/:${XDG_DATA_DIRS}
+endif
+
+if (! ($?XDG_CONFIG_DIRS) ) then
+ setenv XDG_CONFIG_DIRS /etc/xdg
+else
+ setenv XDG_CONFIG_DIRS /etc/xdg:${XDG_CONFIG_DIRS}
+endif
diff --git a/staging/libx11/xorg.sh b/staging/libx11/xorg.sh
new file mode 100644
index 000000000..e1de6866c
--- /dev/null
+++ b/staging/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