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 /community/blueman |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/blueman')
-rw-r--r-- | community/blueman/PKGBUILD | 45 | ||||
-rw-r--r-- | community/blueman/PulsePatch.patch | 11 | ||||
-rw-r--r-- | community/blueman/blueman.install | 11 |
3 files changed, 67 insertions, 0 deletions
diff --git a/community/blueman/PKGBUILD b/community/blueman/PKGBUILD new file mode 100644 index 000000000..0f42d755d --- /dev/null +++ b/community/blueman/PKGBUILD @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 40729 2011-02-26 08:51:40Z ibiru $ +# Maintainer : Ionut Biru <ibiru@archlinux.org +# Contributor: Abhishek Dasgupta <abhidg@gmail.com> + +pkgname=blueman +pkgver=1.21 +pkgrel=7 +pkgdesc="GTK+ bluetooth manager" +arch=('i686' 'x86_64') +license=('GPL') +url="http://blueman-project.org" +depends=('python-notify' 'bluez' 'dbus-python' 'gtk2' 'pygobject' 'startup-notification' 'obex-data-server' 'polkit-gnome' 'xdg-utils' 'hicolor-icon-theme') +makedepends=('pyrex' 'intltool') +optdepends=('dnsmasq: For creating PAN network' + 'gconf: For gconf configuration support' + 'pulseaudio: To use the pulseaudio plugin' + 'notification-daemon: for desktop notifications' + 'libnotify: for desktop notifications' + 'modemmanager: for modem management service' + 'gnome-icon-theme:icon theme') +options=('!libtool') +install=$pkgname.install +source=(http://download.tuxfamily.org/blueman/${pkgname}-${pkgver}.tar.gz + PulsePatch.patch) +md5sums=('26b70341b3d3da28da62c917c8b20377' + 'cdce55a57d7628ed8b6c7fcf4391f4f0') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + patch -Np1 -i "${srcdir}/PulsePatch.patch" + + # python2 fix + for file in apps/blueman*; do + sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' $file + done + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib/blueman \ + --with-no-runtime-deps-check + make + make DESTDIR="${pkgdir}" install + echo "OnlyShowIn=GNOME;XFCE;" >> ${pkgdir}/etc/xdg/autostart/blueman.desktop +} diff --git a/community/blueman/PulsePatch.patch b/community/blueman/PulsePatch.patch new file mode 100644 index 000000000..4635ff983 --- /dev/null +++ b/community/blueman/PulsePatch.patch @@ -0,0 +1,11 @@ +--- blueman-1.21/blueman/main/PulseAudioUtils.py 2009-10-19 14:56:39.000000000 -0500 ++++ blueman-1.21/blueman/main/PulseAudioUtils.py.diff 2009-11-12 12:31:18.430145971 -0600 +@@ -170,7 +170,7 @@ + def wrapper(context, res, data): + if handler: + handler(res) +- pythonapi.Py_DecRef(data) ++ pythonapi.Py_DecRef(py_object(data)) + + cb = pa_context_index_cb_t(wrapper) + pythonapi.Py_IncRef(py_object(cb)) diff --git a/community/blueman/blueman.install b/community/blueman/blueman.install new file mode 100644 index 000000000..8bf021487 --- /dev/null +++ b/community/blueman/blueman.install @@ -0,0 +1,11 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} |