Skip to content

Commit 503ac70

Browse files
committed
blueman: use arch PKGBUILD
1 parent 759d37b commit 503ac70

File tree

2 files changed

+38
-30
lines changed

2 files changed

+38
-30
lines changed

blueman/PKGBUILD

+34-26
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,49 @@
1-
# Maintainer: Ramon Buldó <rbuldo at gmail.com>
1+
# $Id$
2+
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
3+
# Contributer: Arthur Zamarin <[email protected]>
4+
# Contributer: Martin Wimpress <[email protected]>
25

36
pkgname=blueman
47
pkgver=2.0.1
58
_pkgver=2.0
6-
pkgrel=2
7-
pkgdesc="A GTK+ Bluetooth Manager (BlueZ 5)"
9+
pkgrel=3
10+
pkgdesc="GTK+ Bluetooth Manager"
811
arch=('i686' 'x86_64')
9-
license=('GPL')
1012
url="https://github.com/blueman-project/blueman"
11-
depends=('bluez' 'bluez-libs' 'dbus-glib' 'gconf' 'gdk-pixbuf2' 'glib2'
12-
'gtk3' 'notification-daemon' 'libnotify' 'polkit' 'pango'
13-
'python-cairo' 'python-dbus' 'python-gobject' 'python-pybluez')
14-
optdepends=('dnsmasq: DHCP server for Network Access Point'
15-
'pulseaudio: for some audio support')
16-
makedepends=('cython' 'intltool' 'libtool')
17-
conflicts=('blueman-git' 'blueman-bzr')
18-
source=("https://github.com/blueman-project/${pkgname}/releases/download/${_pkgver}/${pkgname}-${_pkgver}.tar.xz")
19-
sha256sums=('81a5ca95124f12bfb62d2d2d0d265af70cdae1d43b0c6e4fc6d2bad8f82958f1')
20-
install=${pkgname}.install
13+
license=('GPL')
14+
depends=('bluez' 'bluez-libs' 'gtk3' 'libnotify' 'python-cairo' 'python-dbus' 'python-gobject')
15+
makedepends=('cython' 'intltool')
16+
optdepends=('dnsmasq: Network Access Point (NAP) support'
17+
'networkmanager: Dial Up Networking (DUN) and Personal Area Networking (PAN) support'
18+
'pulseaudio-bluetooth: audio devices support')
19+
install=$pkgname.install
20+
source=($pkgname-$_pkgver.tar.gz::https://github.com/blueman-project/$pkgname/archive/$_pkgver.tar.gz)
21+
sha256sums=('3f6dc827c4410f128f75a15672af8dc76c5c041f6d639d5ab19b15abeb42ff74')
2122

2223
prepare() {
23-
cd "${srcdir}/${pkgname}-${_pkgver}"
24-
NOCONFIGURE=1 ./autogen.sh
24+
cd $pkgname-$_pkgver
25+
26+
# Fix path for bluetoothd
27+
sed -i 's|/usr/sbin/bluetoothd|/usr/lib/bluetooth/bluetoothd|' apps/blueman-report
28+
29+
# Fix non-standard icon names
30+
sed -i 's/gtk-find/edit-find/' data/ui/device-list-widget.ui
31+
sed -i 's/mouse/input-mouse/' blueman/services/Input.py
32+
33+
NOCONFIGURE=1 ./autogen.sh
2534
}
2635

2736
build() {
28-
cd "${srcdir}/${pkgname}-${_pkgver}"
29-
./configure \
30-
--prefix=/usr \
31-
--sysconfdir=/etc \
32-
--libexecdir=/usr/lib/${pkgname} \
33-
--disable-static \
34-
--disable-schemas-compile
35-
make
37+
cd $pkgname-$_pkgver
38+
./configure \
39+
--prefix=/usr \
40+
--sysconfdir=/etc \
41+
--libexecdir=/usr/lib/$pkgname \
42+
--disable-schemas-compile
43+
make
3644
}
3745

3846
package() {
39-
cd "${srcdir}/${pkgname}-${_pkgver}"
40-
make DESTDIR="${pkgdir}" install
47+
cd $pkgname-$_pkgver
48+
make DESTDIR="$pkgdir" install
4149
}

blueman/blueman.install

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
post_install() {
2-
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
3-
glib-compile-schemas /usr/share/glib-2.0/schemas
2+
glib-compile-schemas usr/share/glib-2.0/schemas
3+
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
44
}
55

66
post_upgrade() {
7-
post_install
7+
post_install
88
}
99

1010
post_remove() {
11-
post_install
11+
post_install
1212
}

0 commit comments

Comments
 (0)