[arch-commits] Commit in revelation/trunk (PKGBUILD revelation.install)
Jan de Groot
jgc at archlinux.org
Sun Nov 29 13:31:54 UTC 2009
Date: Sunday, November 29, 2009 @ 08:31:54
Author: jgc
Revision: 59871
upgpkg: revelation 0.4.11-5
Switch to -any architecture
Add hicolor-icon-theme dependency
Update mime database on postinstall/remove
Use gconfpkg
Add missing makedepends
Modified:
revelation/trunk/PKGBUILD
revelation/trunk/revelation.install
--------------------+
PKGBUILD | 24 +++++++++++++-----------
revelation.install | 21 ++++-----------------
2 files changed, 17 insertions(+), 28 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-11-28 18:41:42 UTC (rev 59870)
+++ PKGBUILD 2009-11-29 13:31:54 UTC (rev 59871)
@@ -3,30 +3,32 @@
pkgname=revelation
pkgver=0.4.11
-pkgrel=4
+pkgrel=5
pkgdesc="Password manager for the GNOME 2 desktop"
-arch=(i686 x86_64)
+arch=(any)
license=('GPL')
-depends=('gnome-python-desktop>=2.18.0' 'pycrypto>=2.0.1-2' 'gnome-panel>=2.18.1' 'cracklib' 'desktop-file-utils')
+depends=('gnome-python-desktop>=2.28.0' 'pycrypto>=2.0.1-3' 'gnome-panel>=2.28.0' 'cracklib' 'desktop-file-utils' 'hicolor-icon-theme')
+makedepends=('intltool')
install=revelation.install
url="http://oss.codepoet.no/revelation/"
-source=(ftp://oss.codepoet.no/revelation/revelation-${pkgver}.tar.bz2
- fs12034.patch)
-md5sums=('e2db4a2f00f59b18798d4453c778129f' 'fd720d187ce5ae631c095872e9db9155')
+source=(http://oss.codepoet.no/revelation/downloads/revelation-${pkgver}.tar.bz2
+ fs12034.patch)
+md5sums=('e2db4a2f00f59b18798d4453c778129f'
+ 'fd720d187ce5ae631c095872e9db9155')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/fs12034.patch" || return 1
- sed -i -e 's/gnome-python-extras/gnome-python-desktop/g' configure
+ sed -i -e 's/gnome-python-extras/gnome-python-desktop/g' configure || return 1
./configure --prefix=/usr --sysconfdir=/etc \
- --libexecdir=/usr/lib/revelation \
- --localstatedir=/var \
- --disable-mime-update --disable-desktop-update || return 1
+ --libexecdir=/usr/lib/revelation \
+ --localstatedir=/var \
+ --disable-mime-update --disable-desktop-update || return 1
make || return 1
make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install || return 1
install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
- gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" ${pkgdir}/etc/gconf/schemas/*.schemas || return 1
+ gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" --domain revelation ${pkgdir}/etc/gconf/schemas/*.schemas || return 1
rm -f ${pkgdir}/etc/gconf/schemas/*.schemas
}
Modified: revelation.install
===================================================================
--- revelation.install 2009-11-28 18:41:42 UTC (rev 59870)
+++ revelation.install 2009-11-29 13:31:54 UTC (rev 59871)
@@ -1,10 +1,10 @@
pkgname=revelation
post_install() {
- export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
- usr/bin/gconftool-2 --makefile-install-rule usr/share/gconf/schemas/${pkgname}.schemas >/dev/null
+ gconfpkg --install ${pkgname}
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
update-desktop-database -q
+ update-mime-database usr/share/mime > /dev/null
}
pre_upgrade() {
@@ -16,24 +16,11 @@
}
pre_remove() {
- if [ -f usr/share/gconf/schemas/${pkgname}.schemas ]; then
- schemas=(usr/share/gconf/schemas/${pkgname}.schemas)
- elif [ -f opt/gnome/share/gconf/schemas/${pkgname}.schemas ]; then
- schemas=(opt/gnome/share/gconf/schemas/${pkgname}.schemas)
- else
- schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
- fi
- export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
-
- usr/bin/gconftool-2 --makefile-uninstall-rule ${schemas[@]} >/dev/null
+ gconfpkg --uninstall ${pkgname}
}
post_remove() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
update-desktop-database -q
+ update-mime-database usr/share/mime > /dev/null
}
-
-op=$1
-shift
-
-$op $*
More information about the arch-commits
mailing list