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
|
# Description: Librairie et outils pour le protocol Bluetooth
# URL: http://www.bluez.org/
# Maintainer: tnut at nutyx dot com
# Packager: tnut at nutyx doc com
# Depends on: libvorbis,alsa-lib, gst-plugins-base, libusb-compat, libnl, libsndfile, dbus-python, cups
# Run on: alsa-lib,gst-plugins-base,libusb-compat,libnl,libsndfile,dbus-python,cups
name=bluez
version=4.99
release=1
source=(http://www.kernel.org/pub/linux/bluetooth/$name-$version.tar.xz
bluez)
build() {
cd $name-$version
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/lib \
--enable-gstreamer \
--enable-alsa \
--enable-usb \
--enable-tools \
--enable-bccmd \
--enable-dfutool \
--enable-hid2hci \
--enable-hidd \
--enable-pand \
--enable-dund \
--enable-cups
make
make DESTDIR=$PKG install
install -m644 network/network.conf input/input.conf audio/audio.conf serial/serial.conf $PKG/etc/bluetooth
mkdir -p $PKG/etc/rc.d/{init.d,rc0.d,rc1.d,rc2.d,rc3.d,rc4.d,rc5.d,rc6.d}
install -m755 $SRC/bluez $PKG/etc/rc.d/init.d/bluez
for i in 0 1 6
do ln -s ../init.d/bluez $PKG/etc/rc.d/rc${i}.d/K40bluez
done
for i in 2 3 4 5
do ln -s ../init.d/bluez $PKG/etc/rc.d/rc${i}.d/S30bluez
done
}
|