[arch-commits] CVS update of extra/devel/anjuta (PKGBUILD anjuta.install)

Jan de Groot jgc at archlinux.org
Wed Jun 27 15:53:37 EDT 2007


    Date: Wednesday, June 27, 2007 @ 15:53:37
  Author: jgc
    Path: /home/cvs-extra/extra/devel/anjuta

Modified: PKGBUILD (1.23 -> 1.24) anjuta.install (1.6 -> 1.7)

upgpkg: anjuta 2.2.0-3
register GConf schemas on postinstall, update desktop database, update scrollkeeper db


----------------+
 PKGBUILD       |   15 ++++++++++-----
 anjuta.install |   29 +++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+), 5 deletions(-)


Index: extra/devel/anjuta/PKGBUILD
diff -u extra/devel/anjuta/PKGBUILD:1.23 extra/devel/anjuta/PKGBUILD:1.24
--- extra/devel/anjuta/PKGBUILD:1.23	Mon Jun 25 18:27:44 2007
+++ extra/devel/anjuta/PKGBUILD	Wed Jun 27 15:53:37 2007
@@ -1,16 +1,17 @@
-# $Id: PKGBUILD,v 1.23 2007/06/25 22:27:44 andyrtr Exp $
+# $Id: PKGBUILD,v 1.24 2007/06/27 19:53:37 jgc Exp $
 # Mantainer: Andreas Radke <andyrtr at archlinux.org>
 # Contributor: Harley Laue <losinggeneration at yahoo.com>
 
 pkgname=anjuta
 pkgver=2.2.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Anjuta Integrated Development Environment (IDE)"
 arch=('i686' 'x86_64')
 license="GPL"
-depends=('devhelp' 'gnome-build>=0.1.7' 'pcre>=7.2' 'vte>=0.16.6' 'graphviz' 'subversion' 'libgnomeprintui>=2.18.0' 'gtksourceview' 'glade')
+depends=('devhelp' 'gnome-build>=0.1.7' 'pcre>=7.2' 'vte>=0.16.6' 'graphviz' 'subversion' 'libgnomeprintui>=2.18.0' 'gtksourceview' 'glade' 'gconf>=2.18.0.1-4' 'scrollkeeper' 'desktop-file-utils')
 makedepends=('autogen' 'gnome-doc-utils')
 url="http://anjuta.sourceforge.net/"
+install=anjuta.install
 source=(http://downloads.sourceforge.net/sourceforge/anjuta/anjuta-$pkgver.tar.bz2)  
 md5sums=('c96861a6143bb11bf553404ac1e279ad')
 options=('!libtool')
@@ -19,8 +20,12 @@
   cd ${startdir}/src/anjuta-${pkgver}
   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-plugin-subversion --enable-plugin-glade \
 		--enable-plugin-class-inheritance --enable-plugin-valgrind \
-		--enable-plugin-sourceview --enable-schemas-install --disable-gtk-doc \
+		--enable-plugin-sourceview --disable-gtk-doc \
 		--enable-debug --disable-scrollkeeper
   make || return 1
-  make DESTDIR=${startdir}/pkg/ install
+  make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR=${startdir}/pkg install
+   
+  mkdir -p ${startdir}/pkg/usr/share/gconf/schemas
+  gconf-merge-schema ${startdir}/pkg/usr/share/gconf/schemas/${pkgname}.schemas ${startdir}/pkg/etc/gconf/schemas/*.schemas
+  rm -f ${startdir}/pkg/etc/gconf/schemas/*.schemas
 }
Index: extra/devel/anjuta/anjuta.install
diff -u /dev/null extra/devel/anjuta/anjuta.install:1.7
--- /dev/null	Wed Jun 27 15:53:37 2007
+++ extra/devel/anjuta/anjuta.install	Wed Jun 27 15:53:37 2007
@@ -0,0 +1,29 @@
+pkgname=anjuta
+
+post_install() {
+  usr/sbin/gconfpkg --install ${pkgname}
+  scrollkeeper-update -q -p var/lib/scrollkeeper
+  update-desktop-database -q
+}
+
+pre_upgrade() {
+  pre_remove $1
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  usr/sbin/gconfpkg --uninstall ${pkgname}
+}
+
+post_remove() {
+  scrollkeeper-update -q -p var/lib/scrollkeeper
+  update-desktop-database -q
+}
+
+op=$1
+shift
+
+$op $*




More information about the arch-commits mailing list