fix obex dbus activation issue

This commit is contained in:
Weng Xuetian 2016-01-07 05:01:33 +00:00
parent c3d185e804
commit 61699e63b6

View File

@ -1,7 +1,7 @@
pkgbase=bluez
pkgname=('bluez' 'bluez-utils' 'bluez-libs' 'bluez-cups' 'bluez-hid2hci' 'bluez-plugins')
pkgver=5.35
pkgrel=1
pkgrel=2
url="http://www.bluez.org/"
arch=('x86_64')
license=('GPL2')
@ -33,7 +33,7 @@ build() {
--libexecdir=/usr/lib \
--enable-sixaxis \
--enable-experimental \
--enable-library # this is deprecated only for legacy apps
--enable-library # this is deprecated
make
}
@ -70,7 +70,10 @@ package_bluez() {
cp -a doc/*.txt ${pkgdir}/usr/share/doc/${pkgbase}/dbus-apis/
# fix module loading errors
install -dm755 ${pkgdir}/usr/lib/modprobe.d
install -Dm644 ${srcdir}/bluetooth.modprobe ${pkgdir}/usr/lib/modprobe.d/bluetooth-usb.conf
install -Dm644 ${srcdir}/bluetooth.modprobe ${pkgdir}/usr/lib/modprobe.d/bluetooth-usb.conf
# fix obex file transfer - https://bugs.archlinux.org/task/45816
ln -fs /usr/lib/systemd/user/obex.service ${pkgdir}/usr/lib/systemd/user/dbus-org.bluez.obex.service
}
package_bluez-utils() {
@ -142,4 +145,4 @@ package_bluez-plugins() {
cd ${pkgbase}-${pkgver}
make DESTDIR=${pkgdir} \
install-pluginLTLIBRARIES
}
}