blob: ce10aecce2723fef7ecd03c244dd125127b8b99f (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bluez
pkgver=4.72
pkgrel=0
pkgdesc="Tools for the Bluetooth protocol stack"
url="http://www.bluez.org/"
license="GPL2"
depends=
makedepends="dbus-dev gst-plugins-base-dev alsa-lib-dev libusb-compat-dev
libnl-dev"
subpackages="$pkgname-dev $pkgname-doc libbluetooth $pkgname-alsa $pkgname-cups
$pkgname-netlink $pkgname-gstreamer"
source="http://www.kernel.org/pub/linux/bluetooth/$pkgname-$pkgver.tar.bz2
bluetooth.initd
bluetooth.confd
"
_builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/lib \
--mandir=/usr/share/man \
--enable-gstreamer \
--enable-alsa \
--enable-usb \
--enable-netlink \
--enable-tools \
--enable-bccmd \
--enable-hid2hci \
--enable-dfutool \
--enable-hidd \
--enable-pand \
--enable-dund \
--enable-cups \
--enable-configfiles \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make install DESTDIR="$pkgdir"
install -Dm755 "$srcdir"/bluetooth.initd "$pkgdir"/etc/init.d/bluetooth
install -Dm644 "$srcdir"/bluetooth.confd "$pkgdir"/etc/conf.d/bluetooth
install -Dm755 test/simple-agent "$pkgdir"/usr/bin/bluez-simple-agent
}
libbluetooth() {
pkgdesc="Libraries for Bluetooth protocol stack"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libbluetooth.so.* "$subpkgdir"/usr/lib/
}
alsa() {
pkgdesc="Bluez plugin for ALSA"
mkdir -p "$subpkgdir"/etc "$subpkgdir"/usr/lib
mv "$pkgdir"/etc/alsa* "$subpkgdir"/etc/
mv "$pkgdir"/usr/lib/alsa* "$subpkgdir"/usr/lib/
}
cups() {
pkgdesc="Bluez backend for CUPS"
mkdir -p "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/cups "$subpkgdir"/usr/lib/
}
netlink() {
pkgdesc="Bluez netlink plugin"
mkdir -p "$subpkgdir"/usr/lib/bluetooth/plugins
mv "$pkgdir"/usr/lib/bluetooth/plugins/netlink.so \
"$subpkgdir"/usr/lib/bluetooth/plugins
}
gstreamer() {
pkgdesc="Bluez plugin for gstreamer"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/gstreamer* \
"$subpkgdir"/usr/lib/
}
md5sums="1e7e4261954275076479a08dbeae26ca bluez-4.72.tar.bz2
66408fb89b05e7ce7e61c4c3c356d2c6 bluetooth.initd
a159d897a057f4675548327329c4cc22 bluetooth.confd"
|