[arch-commits] CVS update of arch/build/x11-libs/libx11 (PKGBUILD xorg.sh)

Alexander Baldeck alexander at archlinux.org
Wed Sep 5 10:23:34 UTC 2007


    Date: Wednesday, September 5, 2007 @ 06:23:34
  Author: alexander
    Path: /home/cvs-arch/arch/build/x11-libs/libx11

   Added: xorg.sh (1.1)
Modified: PKGBUILD (1.22 -> 1.23)

* libx11 now includes profile.d script


----------+
 PKGBUILD |   17 ++++++++++++-----
 xorg.sh  |   15 +++++++++++++++
 2 files changed, 27 insertions(+), 5 deletions(-)


Index: arch/build/x11-libs/libx11/PKGBUILD
diff -u arch/build/x11-libs/libx11/PKGBUILD:1.22 arch/build/x11-libs/libx11/PKGBUILD:1.23
--- arch/build/x11-libs/libx11/PKGBUILD:1.22	Wed Sep  5 05:55:03 2007
+++ arch/build/x11-libs/libx11/PKGBUILD	Wed Sep  5 06:23:34 2007
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD,v 1.22 2007/09/05 09:55:03 alexander Exp $
+# $Id: PKGBUILD,v 1.23 2007/09/05 10:23:34 alexander Exp $
 # Maintainer: Alexander Baldeck <alexander at archlinux.org>
 # Contributor Jan de Groot <jgc at archlinux.org>
 pkgname=libx11
 pkgver=1.1.3
-pkgrel=2
+pkgrel=3
 pkgdesc="X11 client-side library"
 arch=(i686 x86_64)
 url="http://xorg.freedesktop.org/"
@@ -12,7 +12,8 @@
              'kbproto' 'inputproto' 'bigreqsproto' 'xorg-util-macros')
 options=(!libtool)
 source=(${url}/releases/individual/lib/libX11-${pkgver}.tar.bz2
-	012_ru_RU_UTF-8_XLC_LOCALE.diff)
+	012_ru_RU_UTF-8_XLC_LOCALE.diff
+	xorg.sh)
 
 build() {
   cd ${startdir}/src/libX11-${pkgver}
@@ -24,9 +25,15 @@
 
   ./configure --prefix=/usr \
               --build=${CHOST} --host=${CHOST} \
-	      --with-xcb
+              --with-xcb
   make || return 1
   make DESTDIR=${startdir}/pkg install || return 1
+
+  mkdir -p ${startdir}/pkg/etc/profile.d 
+  install -m755 ${startdir}/src/xorg.sh \
+                ${startdir}/pkg/etc/profile.d/ || return 1
+
 }
 md5sums=('4d43d3e472c552d2f191ecdd4e75112c'
-         'c7e38a68b932ed557bc71979eed2a8a1')
+         'c7e38a68b932ed557bc71979eed2a8a1'
+         '942ff006e69e041f0307c1316e0dec5d')
Index: arch/build/x11-libs/libx11/xorg.sh
diff -u /dev/null arch/build/x11-libs/libx11/xorg.sh:1.1
--- /dev/null	Wed Sep  5 06:23:34 2007
+++ arch/build/x11-libs/libx11/xorg.sh	Wed Sep  5 06:23:34 2007
@@ -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




More information about the arch-commits mailing list