diff options
Diffstat (limited to 'extra/ghex')
-rw-r--r-- | extra/ghex/PKGBUILD | 17 | ||||
-rw-r--r-- | extra/ghex/ghex.install | 16 |
2 files changed, 14 insertions, 19 deletions
diff --git a/extra/ghex/PKGBUILD b/extra/ghex/PKGBUILD index c398d96a7..ee47e61fc 100644 --- a/extra/ghex/PKGBUILD +++ b/extra/ghex/PKGBUILD @@ -1,33 +1,30 @@ -# $Id: PKGBUILD 135083 2011-08-10 07:36:19Z ibiru $ +# $Id: PKGBUILD 135591 2011-08-16 08:47:35Z ibiru $ # Maintainer: tobias <tobias@archlinux.org> # Contributor: Tobias Kieslich <tobias@justdreams.de> pkgname=ghex -pkgver=2.90.0 +pkgver=2.90.1 pkgrel=1 pkgdesc="A simple binary editor for the Gnome desktop" arch=('i686' 'x86_64' 'mips64el') license=('GPL') url="http://live.gnome.org/Ghex" -depends=('gtk3' 'gconf' 'hicolor-icon-theme') +depends=('gtk3' 'hicolor-icon-theme') makedepends=('intltool' 'gnome-doc-utils') options=('!libtool' '!emptydirs') install=ghex.install source=(http://ftp.gnome.org/pub/GNOME/sources/ghex/2.90/${pkgname}-${pkgver}.tar.xz) -sha256sums=('2edeedcf1973c221d2f5ea1397099fbfc054b60cf2ebff5cb1ca9e83fd6c4974') +sha256sums=('e736a322c3e25d0733bee72848f586c6477c11c0f0a63a77069be9048a66ec9a') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr --sysconfdir=/etc \ - --localstatedir=/var --disable-static + --localstatedir=/var --disable-static \ + --disable-schemas-compile make } package() { cd "${srcdir}/${pkgname}-${pkgver}" - make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install - - install -d -m755 "${pkgdir}/usr/share/gconf/schemas" - gconf-merge-schema ${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas --domain ghex-3.0 "${pkgdir}"/etc/gconf/schemas/*.schemas - rm -f "${pkgdir}"/etc/gconf/schemas/*.schemas + make DESTDIR="${pkgdir}" install } diff --git a/extra/ghex/ghex.install b/extra/ghex/ghex.install index d2fd968ea..084bc82ee 100644 --- a/extra/ghex/ghex.install +++ b/extra/ghex/ghex.install @@ -1,22 +1,20 @@ pkgname=ghex post_install() { - usr/sbin/gconfpkg --install ${pkgname} - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + glib-compile-schemas usr/share/glib-2.0/schemas + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor } pre_upgrade() { - pre_remove $1 + if [ -f usr/share/gconf/schemas/$pkgname.schemas ]; then + gconfpkg --uninstall $pkgname + fi } post_upgrade() { - post_install $1 -} - -pre_remove() { - usr/sbin/gconfpkg --uninstall ${pkgname} + post_install $1 } post_remove() { - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + post_install $1 } |