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-user-share |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/gnome-user-share')
-rw-r--r-- | extra/gnome-user-share/PKGBUILD | 32 | ||||
-rw-r--r-- | extra/gnome-user-share/gnome-user-share-2.30.1-libnotify-0.7.patch | 31 | ||||
-rw-r--r-- | extra/gnome-user-share/gnome-user-share.install | 22 |
3 files changed, 85 insertions, 0 deletions
diff --git a/extra/gnome-user-share/PKGBUILD b/extra/gnome-user-share/PKGBUILD new file mode 100644 index 000000000..75b1ad846 --- /dev/null +++ b/extra/gnome-user-share/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 112854 2011-03-07 09:18:18Z ibiru $ +# Maintainer: Roman Kyrylych <roman@archlinux.org> + +pkgname=gnome-user-share +pkgver=2.30.1 +pkgrel=2 +pkgdesc="Easy to use user-level file sharing for GNOME." +arch=('i686' 'x86_64') +url="http://ftp.gnome.org/pub/GNOME/sources/gnome-user-share/" +license=('GPL') +depends=('mod_dnssd>=0.6-3' 'gconf>=2.32.0' 'hicolor-icon-theme' 'libnotify>=0.7.1' 'gnome-bluetooth>=2.31.90' 'libcanberra>=0.25') +makedepends=('intltool' 'gnome-doc-utils>=0.20.1' 'nautilus') +options=('!emptydirs' '!libtool') +install=gnome-user-share.install +source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/2.30/${pkgname}-${pkgver}.tar.bz2 + gnome-user-share-2.30.1-libnotify-0.7.patch) +sha256sums=('30ba07420a495450f80b4be001601150453ddc3504ff23c486fd1541ff5a1bfe' + '60fcfe4a7120b7a917e2aec227f3a40fe4993bc9c80f2722f856fbe4e6e4994e') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np0 -i "${srcdir}/gnome-user-share-2.30.1-libnotify-0.7.patch" + ./configure --prefix=/usr --sysconfdir=/etc \ + --libexecdir=/usr/lib/gnome-user-share \ + --localstatedir=/var + make + make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install + + install -m755 -d "${pkgdir}/usr/share/gconf/schemas" + gconf-merge-schema ${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas --domain gnome-user-share ${pkgdir}/etc/gconf/schemas/*.schemas + rm -f ${pkgdir}/etc/gconf/schemas/*.schemas +} diff --git a/extra/gnome-user-share/gnome-user-share-2.30.1-libnotify-0.7.patch b/extra/gnome-user-share/gnome-user-share-2.30.1-libnotify-0.7.patch new file mode 100644 index 000000000..73c5a9ab8 --- /dev/null +++ b/extra/gnome-user-share/gnome-user-share-2.30.1-libnotify-0.7.patch @@ -0,0 +1,31 @@ +http://pkgs.fedoraproject.org/gitweb/?p=gnome-user-share.git;a=blob;f=notify.patch;hb=HEAD + +--- src/obexpush.c ++++ src/obexpush.c +@@ -139,10 +139,9 @@ show_notification (const char *filename) + /* Translators: %s is the name of the filename received */ + notification_text = g_strdup_printf(_("You received \"%s\" via Bluetooth"), display); + g_free (display); +- notification = notify_notification_new_with_status_icon (_("You received a file"), +- notification_text, +- "dialog-information", +- GTK_STATUS_ICON (statusicon)); ++ notification = notify_notification_new (_("You received a file"), ++ notification_text, ++ "dialog-information"); + + notify_notification_set_timeout (notification, NOTIFY_EXPIRES_DEFAULT); + +@@ -218,10 +217,10 @@ device_is_authorised (const char *bdaddr + char *device_path; + GHashTable *props; + +- g_message ("checking adapter %s", g_ptr_array_index (adapters, i)); ++ g_message ("checking adapter %s", (char *)g_ptr_array_index (adapters, i)); + + adapter = dbus_g_proxy_new_for_name (connection, "org.bluez", +- g_ptr_array_index (adapters, i), "org.bluez.Adapter"); ++ (char *)g_ptr_array_index (adapters, i), "org.bluez.Adapter"); + + if (dbus_g_proxy_call (adapter, "FindDevice", NULL, + G_TYPE_STRING, bdaddr, G_TYPE_INVALID, diff --git a/extra/gnome-user-share/gnome-user-share.install b/extra/gnome-user-share/gnome-user-share.install new file mode 100644 index 000000000..3cc1b5286 --- /dev/null +++ b/extra/gnome-user-share/gnome-user-share.install @@ -0,0 +1,22 @@ +pkgname=gnome-user-share + +post_install() { + usr/sbin/gconfpkg --install ${pkgname} + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + usr/sbin/gconfpkg --uninstall ${pkgname} +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} |