summaryrefslogtreecommitdiff
path: root/community/blueman/PKGBUILD
blob: 21e070311ca85a3f3c19bebdf2824734c55f0afb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# $Id: PKGBUILD 56850 2011-10-14 21:12:20Z spupykin $
# Maintainer : Ionut Biru <ibiru@archlinux.org
# Contributor: Abhishek Dasgupta <abhidg@gmail.com>

pkgname=blueman
pkgver=1.23
pkgrel=1
pkgdesc="GTK+ bluetooth manager"
arch=('i686' 'x86_64' 'mips64el')
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=('f0bee59589f4c23e35bf08c2ef8acaef'
         '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
}