[arch-commits] CVS update of extra/gnome/bluez-gnome (PKGBUILD bluez-gnome.install)

Roman Kyrylych roman at archlinux.org
Wed Feb 27 21:38:59 UTC 2008


    Date: Wednesday, February 27, 2008 @ 16:38:59
  Author: roman
    Path: /home/cvs-extra/extra/gnome/bluez-gnome

   Added: bluez-gnome.install (1.1)
Modified: PKGBUILD (1.7 -> 1.8)

upgpkg: bluez-gnome 0.23-1


---------------------+
 PKGBUILD            |   34 +++++++++++++++++-----------------
 bluez-gnome.install |   24 ++++++++++++++++++++++++
 2 files changed, 41 insertions(+), 17 deletions(-)


Index: extra/gnome/bluez-gnome/PKGBUILD
diff -u extra/gnome/bluez-gnome/PKGBUILD:1.7 extra/gnome/bluez-gnome/PKGBUILD:1.8
--- extra/gnome/bluez-gnome/PKGBUILD:1.7	Mon Oct  8 14:59:08 2007
+++ extra/gnome/bluez-gnome/PKGBUILD	Wed Feb 27 16:38:59 2008
@@ -1,30 +1,30 @@
-# $Id: PKGBUILD,v 1.7 2007/10/08 18:59:08 varun Exp $
-# Maintainer: Varun Acharya <varun at archlinux.org>
+# $Id: PKGBUILD,v 1.8 2008/02/27 21:38:59 roman Exp $
+# Maintainer: Roman Kyrylych <roman at archlinux.org>
+
 pkgname=bluez-gnome
-pkgver=0.14
+pkgver=0.23
 pkgrel=1
 pkgdesc="bluetooth PIN helper application"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
 url="http://www.bluez.org/"
 license=('GPL')
+depends=('hal' 'libnotify>=0.4.4-1' 'gconf>=2.18.0.1-4' 'desktop-file-utils'
+         'hicolor-icon-theme')
 makedepends=('perlxml')
-depends=('libnotify>=0.4.4-1' 'gconf>=2.18.0.1-4')
-options=(!emptydirs)
+install=bluez-gnome.install
 source=(http://bluez.sourceforge.net/download/${pkgname}-${pkgver}.tar.gz)
-md5sums=('7c4106e6932683c12c1e30bfb166c13d')
+md5sums=('5544d8ff56de711445b4d178cea39c80')
+options=('!emptydirs')
 
 build() {
   cd ${startdir}/src/${pkgname}-${pkgver}
-  ./configure --prefix=/usr --sysconfdir=/etc \
-              --localstatedir=/var
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+    --disable-desktop-update --disable-mime-update --disable-icon-update
   make || return 1
-  make DESTDIR=${startdir}/pkg install
-  find $startdir/pkg -name 'aliases' -exec rm {} \;
-  find $startdir/pkg -name 'globs' -exec rm {} \;
-  find $startdir/pkg -name 'mime.cache' -exec rm {} \;
-  find $startdir/pkg -name 'magic' -exec rm {} \;
-  find $startdir/pkg -name 'subclasses' -exec rm {} \;
-  find $startdir/pkg -name 'XMLnamespaces' -exec rm {} \;
-  find $startdir/pkg -name 'mimeinfo.cache' -exec rm {} \;
+  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/gnome/bluez-gnome/bluez-gnome.install
diff -u /dev/null extra/gnome/bluez-gnome/bluez-gnome.install:1.1
--- /dev/null	Wed Feb 27 16:38:59 2008
+++ extra/gnome/bluez-gnome/bluez-gnome.install	Wed Feb 27 16:38:59 2008
@@ -0,0 +1,24 @@
+pkgname=bluez-gnome
+
+post_install() {
+  usr/sbin/gconfpkg --install ${pkgname}
+  update-desktop-database -q
+  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+pre_upgrade() {
+  pre_remove $1
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  usr/sbin/gconfpkg --uninstall ${pkgname}
+}
+
+post_remove() {
+  update-desktop-database -q
+  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}




More information about the arch-commits mailing list