From c7cb603f86b4d4fb6567e3faa15b916a306f7004 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 3 Apr 2012 00:01:35 +0000 Subject: Tue Apr 3 00:01:35 UTC 2012 --- testing/ghex/PKGBUILD | 30 ++++++++++++++++++++++++++++++ testing/ghex/ghex.install | 20 ++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 testing/ghex/PKGBUILD create mode 100644 testing/ghex/ghex.install (limited to 'testing/ghex') diff --git a/testing/ghex/PKGBUILD b/testing/ghex/PKGBUILD new file mode 100644 index 000000000..c7e7abf77 --- /dev/null +++ b/testing/ghex/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: PKGBUILD 155084 2012-04-01 11:32:27Z heftig $ +# Maintainer: tobias +# Contributor: Tobias Kieslich + +pkgname=ghex +pkgver=3.4.0 +pkgrel=1 +pkgdesc="A simple binary editor for the Gnome desktop" +arch=('i686' 'x86_64') +license=('GPL') +url="http://live.gnome.org/Ghex" +depends=('gtk3' 'hicolor-icon-theme') +makedepends=('intltool' 'gnome-doc-utils') +options=('!libtool' '!emptydirs') +install=ghex.install +source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver:0:3}/$pkgname-$pkgver.tar.xz) +sha256sums=('59e409cc629fddeb06552c505b60be1d20274cea75eb22f1d65d7ca0aaf1e64d') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var --disable-static \ + --disable-schemas-compile + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} diff --git a/testing/ghex/ghex.install b/testing/ghex/ghex.install new file mode 100644 index 000000000..084bc82ee --- /dev/null +++ b/testing/ghex/ghex.install @@ -0,0 +1,20 @@ +pkgname=ghex + +post_install() { + glib-compile-schemas usr/share/glib-2.0/schemas + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +pre_upgrade() { + if [ -f usr/share/gconf/schemas/$pkgname.schemas ]; then + gconfpkg --uninstall $pkgname + fi +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} -- cgit v1.2.3-54-g00ecf