summaryrefslogtreecommitdiffstats
path: root/extra/bluez/Pkgfile
blob: 8e745d3177497a88eb2a3386cdceaf9f2d9dd22c (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
# 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: alsa-lib, gstreamer, libusb-compat, libnl, libsndfile, dbus-python, cups
# Run on: alsa-lib,gstreamer,libusb-compat,libnl,libsndfile,dbus-python,cups

name=bluez
version=4.96
release=1
source=(http://www.kernel.org/pub/linux/bluetooth/$name-$version.tar.bz2\
	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
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/K80bluez
done
for i in 2 3 4 5
	do ln -s ../init.d/bluez $PKG/etc/rc.d/rc${i}.d/S20bluez
done
}