From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- .../61-gnome-bluetooth-rfkill.rules | 11 ++++++ extra/gnome-bluetooth/PKGBUILD | 43 ++++++++++++++++++++++ .../gnome-bluetooth-2.32.0-libnotify-0.7.patch | 27 ++++++++++++++ extra/gnome-bluetooth/gnome-bluetooth.install | 13 +++++++ 4 files changed, 94 insertions(+) create mode 100644 extra/gnome-bluetooth/61-gnome-bluetooth-rfkill.rules create mode 100644 extra/gnome-bluetooth/PKGBUILD create mode 100644 extra/gnome-bluetooth/gnome-bluetooth-2.32.0-libnotify-0.7.patch create mode 100644 extra/gnome-bluetooth/gnome-bluetooth.install (limited to 'extra/gnome-bluetooth') diff --git a/extra/gnome-bluetooth/61-gnome-bluetooth-rfkill.rules b/extra/gnome-bluetooth/61-gnome-bluetooth-rfkill.rules new file mode 100644 index 000000000..a76c1e73c --- /dev/null +++ b/extra/gnome-bluetooth/61-gnome-bluetooth-rfkill.rules @@ -0,0 +1,11 @@ +# Get access to /dev/rfkill for users +# See https://bugzilla.redhat.com/show_bug.cgi?id=514798 +# +# Updated for udev >= 154 +# http://bugs.debian.org/582188 +# https://bugzilla.redhat.com/show_bug.cgi?id=588660 + +ENV{ACL_MANAGE}=="0", GOTO="gnome_bluetooth_end" +ACTION!="add|change", GOTO="gnome_bluetooth_end" +KERNEL=="rfkill", TAG+="udev-acl" +LABEL="gnome_bluetooth_end" diff --git a/extra/gnome-bluetooth/PKGBUILD b/extra/gnome-bluetooth/PKGBUILD new file mode 100644 index 000000000..d5a483f72 --- /dev/null +++ b/extra/gnome-bluetooth/PKGBUILD @@ -0,0 +1,43 @@ +# $Id: PKGBUILD 112788 2011-03-06 19:49:19Z ibiru $ +# Maintainer: +# Contributor: Roman Kyrylych + +pkgname=gnome-bluetooth +pkgver=2.32.0 +pkgrel=2 +pkgdesc="The GNOME Bluetooth Subsystem" +arch=('i686' 'x86_64') +url="http://live.gnome.org/GnomeBluetooth" +license=('GPL' 'LGPL') +depends=('libunique>=1.1.6' 'libnotify>=0.7.1' 'hicolor-icon-theme' 'gvfs-obexftp>=1.6.3' 'obexd-client>=0.33' 'dconf') +makedepends=('intltool' 'pygtk>=2.22' 'gnome-doc-utils>=0.20.1' 'nautilus-sendto>=2.28.4') +replaces=('bluez-gnome') +conflicts=('bluez-gnome') +options=('!libtool' '!emptydirs' '!makeflags') +install=gnome-bluetooth.install +source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/2.32/${pkgname}-${pkgver}.tar.bz2 + 61-gnome-bluetooth-rfkill.rules + gnome-bluetooth-2.32.0-libnotify-0.7.patch) +sha256sums=('57b1f06c96a1b85e1c19ff919d708cc38e95edae658881ed99968c325839a973' + 'b8acb8ea2e7f3588575cffd8ea14ec50c8641f518f2ea899771a508b299ea474' + '42b8388156249bd7c8a18db6d6aef18895ce861f2a79cb937e55eda864245838') +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np0 -i "${srcdir}/gnome-bluetooth-2.32.0-libnotify-0.7.patch" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-desktop-update \ + --disable-icon-update \ + --disable-schemas-compile \ + --enable-introspection=no + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + + install -m644 -D "${srcdir}/61-gnome-bluetooth-rfkill.rules" \ + "${pkgdir}/lib/udev/rules.d//61-gnome-bluetooth-rfkill.rules" +} diff --git a/extra/gnome-bluetooth/gnome-bluetooth-2.32.0-libnotify-0.7.patch b/extra/gnome-bluetooth/gnome-bluetooth-2.32.0-libnotify-0.7.patch new file mode 100644 index 000000000..72a726521 --- /dev/null +++ b/extra/gnome-bluetooth/gnome-bluetooth-2.32.0-libnotify-0.7.patch @@ -0,0 +1,27 @@ +--- applet/notify.c ++++ applet/notify.c +@@ -31,6 +31,10 @@ + #include + #include "notify.h" + ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif ++ + static GtkStatusIcon *statusicon = NULL; + static char *icon_name = NULL; + static char *tooltip = NULL; +@@ -71,7 +75,12 @@ + notify_notification_close(notify, NULL); + } + +- notify = notify_notification_new(summary, message, icon_name, NULL); ++ notify = notify_notification_new(summary, message, icon_name ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ ); ++#else ++ , NULL); ++#endif + + notify_notification_set_timeout(notify, timeout); + diff --git a/extra/gnome-bluetooth/gnome-bluetooth.install b/extra/gnome-bluetooth/gnome-bluetooth.install new file mode 100644 index 000000000..bddac2574 --- /dev/null +++ b/extra/gnome-bluetooth/gnome-bluetooth.install @@ -0,0 +1,13 @@ +post_install() { + usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install $1 +} + + +post_remove() { + post_install $1 +} -- cgit v1.2.3-54-g00ecf