diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/gnome-disk-utility |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/gnome-disk-utility')
-rw-r--r-- | extra/gnome-disk-utility/PKGBUILD | 30 | ||||
-rw-r--r-- | extra/gnome-disk-utility/fix-freeze.patch | 32 | ||||
-rw-r--r-- | extra/gnome-disk-utility/gnome-disk-utility.install | 11 |
3 files changed, 73 insertions, 0 deletions
diff --git a/extra/gnome-disk-utility/PKGBUILD b/extra/gnome-disk-utility/PKGBUILD new file mode 100644 index 000000000..0c6b57e76 --- /dev/null +++ b/extra/gnome-disk-utility/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: PKGBUILD 112789 2011-03-06 20:08:19Z ibiru $ +# Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgname=gnome-disk-utility +pkgver=2.32.1 +pkgrel=1 +pkgdesc="GNOME libraries and applications for dealing with storage devices" +arch=('i686' 'x86_64') +license=('GPL') +url="http://www.gnome.org" +depends=('dbus-glib>=0.86' 'libgnome-keyring>=2.31.92' 'libunique>=1.1.6' 'udisks>=1.0.1' 'libnotify>=0.7.1' 'hicolor-icon-theme' 'avahi') +makedepends=('gnome-doc-utils>=0.20.0' 'intltool') +replaces=('gnome-mount') +conflicts=('gnome-mount') +options=('!libtool' '!emptydirs' '!makeflags') +install=gnome-disk-utility.install +source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/2.32/${pkgname}-${pkgver}.tar.bz2 + fix-freeze.patch) +sha256sums=('fb3f6c8962eca9706fd96e1f0b431c1284536298bc927e8413e763054c618e99' +'818b70360978968457d2c50738347c6726ed8d0c007eb57074881a7e33652526') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i "${srcdir}/fix-freeze.patch" + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --libexecdir=/usr/lib/gnome-disk-utility \ + --disable-scrollkeeper --disable-nautilus --disable-gtk-doc + make + make DESTDIR="${pkgdir}" install +} diff --git a/extra/gnome-disk-utility/fix-freeze.patch b/extra/gnome-disk-utility/fix-freeze.patch new file mode 100644 index 000000000..262748bfb --- /dev/null +++ b/extra/gnome-disk-utility/fix-freeze.patch @@ -0,0 +1,32 @@ +From 82489b51443e1280dfb9fb251ea2693df1809aec Mon Sep 17 00:00:00 2001 +From: Pascal Terjan <pterjan@mandriva.com> +Date: Mon, 3 May 2010 14:01:22 +0200 +Subject: [PATCH] Force GduPresentable ids to be UTF-8 (#616198) + +GduPresentable created in gdu pool include intheir id some strings +in local encoding like _("Peripheral Devices"). This patch +enforces them to be UTF-8. + +This fixes a crash of gvfs-gdu-volume-monitor when USB devices are +available on a non UTF-8 system. +--- + src/gdu/gdu-pool.c | 3 +++ + 1 files changed, 3 insertions(+), 0 deletions(-) + +diff --git a/src/gdu/gdu-pool.c b/src/gdu/gdu-pool.c +index bd5eccf..cf6be53 100644 +--- a/src/gdu/gdu-pool.c ++++ b/src/gdu/gdu-pool.c +@@ -473,6 +473,9 @@ gdu_pool_class_init (GduPoolClass *klass) + g_cclosure_marshal_VOID__OBJECT, + G_TYPE_NONE, 1, + GDU_TYPE_PRESENTABLE); ++#ifdef HAVE_BIND_TEXTDOMAIN_CODESET ++ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); ++#endif + } + + static void +-- +1.7.1 + diff --git a/extra/gnome-disk-utility/gnome-disk-utility.install b/extra/gnome-disk-utility/gnome-disk-utility.install new file mode 100644 index 000000000..43ed0a554 --- /dev/null +++ b/extra/gnome-disk-utility/gnome-disk-utility.install @@ -0,0 +1,11 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} |