[arch-commits] Commit in libgail-gnome/trunk (PKGBUILD libgail-gnome.install)

Jan de Groot jgc at archlinux.org
Mon Jun 21 10:57:56 EDT 2010


    Date: Monday, June 21, 2010 @ 10:57:56
  Author: jgc
Revision: 83418

upgpkg: libgail-gnome 1.20.3-1
Add install scriptlet to handle gconf schema

Added:
  libgail-gnome/trunk/libgail-gnome.install
Modified:
  libgail-gnome/trunk/PKGBUILD

-----------------------+
 PKGBUILD              |   17 +++++++++++------
 libgail-gnome.install |   19 +++++++++++++++++++
 2 files changed, 30 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-06-21 14:36:08 UTC (rev 83417)
+++ PKGBUILD	2010-06-21 14:57:56 UTC (rev 83418)
@@ -2,23 +2,28 @@
 # Maintainer: Jan de Groot <jgc at archlinux.org>
 
 pkgname=libgail-gnome
-pkgver=1.20.2
+pkgver=1.20.3
 pkgrel=1
 pkgdesc="GNOME Accessibility Implementation Library for gnomeui and libbonoboui"
 arch=(i686 x86_64)
 license=('LGPL')
 depends=('gnome-panel>=2.30' 'at-spi>=1.30' 'libgnomeui>=2.24.3')
 makedepends=('intltool' 'pkgconfig')
-options=('!libtool')
+options=('!libtool' '!emptydirs')
 groups=('gnome')
+install=libgail-gnome.install
 url="http://www.gnome.org"
 source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/1.20/${pkgname}-${pkgver}.tar.bz2)
-sha256sums=('28efea7aaa7351735129b851214ffc6a8595fae9c4fd0967b1bbfb6553d27382')
+sha256sums=('941f47ceaaebb508f66247639051d233284d93f3f42a76284a9f8d1c0ba09a22')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
   ./configure --prefix=/usr --sysconfdir=/etc \
-              --localstatedir=/var  || return 1
-  make || return 1
-  make DESTDIR="${pkgdir}" install || return 1
+      --localstatedir=/var
+  make
+  make -j1 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install
+
+  install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
+  gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" ${pkgdir}/etc/gconf/schemas/*.schemas
+  rm -f ${pkgdir}/etc/gconf/schemas/*.schemas
 }

Added: libgail-gnome.install
===================================================================
--- libgail-gnome.install	                        (rev 0)
+++ libgail-gnome.install	2010-06-21 14:57:56 UTC (rev 83418)
@@ -0,0 +1,19 @@
+pkgname=libgail-gnome
+
+post_install() {
+  usr/sbin/gconfpkg --install ${pkgname}
+}
+
+pre_upgrade() {
+  pre_remove $1
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  if [ -e usr/share/gconf/schemas/${pkgname}.schemas ]; then
+    usr/sbin/gconfpkg --uninstall ${pkgname}
+  fi
+}



More information about the arch-commits mailing list