diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/libx11 |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/libx11')
-rw-r--r-- | extra/libx11/PKGBUILD | 35 | ||||
-rw-r--r-- | extra/libx11/xorg.sh | 15 |
2 files changed, 50 insertions, 0 deletions
diff --git a/extra/libx11/PKGBUILD b/extra/libx11/PKGBUILD new file mode 100644 index 000000000..f8ba6f768 --- /dev/null +++ b/extra/libx11/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 115642 2011-03-18 11:45:18Z andyrtr $ +# Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgname=libx11 +pkgver=1.4.2 +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) +sha1sums=('c93fc44dcc028319bee76f3e629ec43cfce42673' + '4b756387426afb2a5bb7a155631ec42348abf5c1') + +build() { + cd "${srcdir}/libX11-${pkgver}" + ./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/extra/libx11/xorg.sh b/extra/libx11/xorg.sh new file mode 100644 index 000000000..e1de6866c --- /dev/null +++ b/extra/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 |