diff options
Diffstat (limited to 'gnome-unstable/gnome-utils')
-rw-r--r-- | gnome-unstable/gnome-utils/PKGBUILD | 41 | ||||
-rw-r--r-- | gnome-unstable/gnome-utils/gnome-utils.install | 26 |
2 files changed, 67 insertions, 0 deletions
diff --git a/gnome-unstable/gnome-utils/PKGBUILD b/gnome-unstable/gnome-utils/PKGBUILD new file mode 100644 index 000000000..210665222 --- /dev/null +++ b/gnome-unstable/gnome-utils/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 136813 2011-09-01 19:23:30Z ibiru $ +# Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgname=gnome-utils +pkgver=3.1.90 +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=('edb1f156bd44494588b61be7150d3496bd2daeca0848a5d7baf51f87017cf54e') + +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/gnome-unstable/gnome-utils/gnome-utils.install b/gnome-unstable/gnome-utils/gnome-utils.install new file mode 100644 index 000000000..a04bda405 --- /dev/null +++ b/gnome-unstable/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 +} |