diff options
author | root <root@rshg054.dnsready.net> | 2011-10-18 23:14:49 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-10-18 23:14:49 +0000 |
commit | 791dde5091677cd6370690f9df9fb7cbdcfe0968 (patch) | |
tree | 44b8403e7782995a56c22f0fdacd13b227667bb1 /testing/gnome-utils | |
parent | c4f201fd7208805c7ee00e0ee833d3cc505898ac (diff) |
Tue Oct 18 23:14:48 UTC 2011
Diffstat (limited to 'testing/gnome-utils')
-rw-r--r-- | testing/gnome-utils/PKGBUILD | 41 | ||||
-rw-r--r-- | testing/gnome-utils/gnome-utils.install | 26 |
2 files changed, 67 insertions, 0 deletions
diff --git a/testing/gnome-utils/PKGBUILD b/testing/gnome-utils/PKGBUILD new file mode 100644 index 000000000..c9b7d60e9 --- /dev/null +++ b/testing/gnome-utils/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 140623 2011-10-17 15:11:03Z ibiru $ +# Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgname=gnome-utils +pkgver=3.2.1 +pkgrel=1 +pkgdesc="Common GNOME utilities for viewing disk usage, logs and fonts, taking screenshots, managing dictionaries and searching files" +arch=(i686 x86_64) +license=('GPL') +depends=('libgtop' 'libcanberra' 'libsm' 'gconf' 'gsettings-desktop-schemas' 'hicolor-icon-theme' 'desktop-file-utils' 'dconf') +makedepends=('gnome-doc-utils' 'pkgconfig' 'intltool') +options=('!libtool' '!emptydirs') +url="http://www.gnome.org" +groups=('gnome-extra') +install=gnome-utils.install +source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz) +sha256sums=('3ac1942dbf4d9d394e2fcc5f30a4480b1b1e5d44ee0c2d4f61689f4a221ba328') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr --sysconfdir=/etc \ + --libexecdir=/usr/lib/gnome-utils \ + --localstatedir=/var --disable-static \ + --disable-scrollkeeper \ + --disable-schemas-compile \ + --disable-schemas-install + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + + install -m755 -d "${pkgdir}/usr/share/gconf/schemas" + gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" --domain gnome-utils-2.0 ${pkgdir}/etc/gconf/schemas/*.schemas + rm -f ${pkgdir}/etc/gconf/schemas/*.schemas + + # remove it also from Xfce menu that ships its own thingy + sed -i -e "s/NotShowIn\=KDE\;/NotShowIn\=KDE\;XFCE\;/" ${pkgdir}/usr/share/applications/gnome-dictionary.desktop + sed -i -e "s/NotShowIn\=KDE\;/NotShowIn\=KDE\;XFCE\;/" ${pkgdir}/usr/share/applications/gnome-screenshot.desktop +} diff --git a/testing/gnome-utils/gnome-utils.install b/testing/gnome-utils/gnome-utils.install new file mode 100644 index 000000000..a04bda405 --- /dev/null +++ b/testing/gnome-utils/gnome-utils.install @@ -0,0 +1,26 @@ +pkgname=gnome-utils + +post_install() { + usr/sbin/gconfpkg --install ${pkgname} + usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + usr/sbin/gconfpkg --uninstall ${pkgname} +} + +post_remove() { + usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q +} |