summaryrefslogtreecommitdiffstats
path: root/extra/bluez/Pkgfile
blob: 6b741f4546704d8574a1dad465b3aaaf09405518 (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
# Description: Librairies et outils pour le bluetooth
# URL: http://www.bluez.org/
# Maintainer: NuTyX packager team
# Packager: lesibel at free dot fr
# Depends on: dbus, gstreamer, libnl, libsndfile, dbus-python, pygobject, libusb, cups

name=bluez
version=4.69
release=1
source=(http://www.kernel.org/pub/linux/bluetooth/$name-$version.tar.bz2 
	bluetooth.conf.d
        rc.bluetooth)

build() {
	cd $name-$version

	./configure --prefix=/usr \
        --sysconfdir=/etc \
        --localstatedir=/var \
        --libexecdir=/lib \
        --mandir=/usr/share/man \
        --enable-network \
        --enable-serial \
        --enable-input \
        --enable-audio \
        --enable-service \
        --enable-gstreamer \
        --enable-alsa \
        --enable-usb \
        --enable-netlink \
        --enable-tools \
        --enable-bccmd \
        --enable-dfutool \
        --enable-hidd \
        --enable-pand \
        --enable-dund \
        --enable-cups \
        --enable-udevrules \
        --enable-configfiles
  make -j5
  make DESTDIR=$PKG install

  install -Dm755 $SRC/rc.bluetooth $PKG/etc/rc.d/init.d/bluetooth
  
  install -d $PKG/etc/bluetooth
  install -m644 network/network.conf \
                input/input.conf \
                audio/audio.conf \
                serial/serial.conf \
    	$PKG/etc/bluetooth/
  
  install -Dm644 $SRC/bluetooth.conf.d \
    $PKG/etc/conf.d/bluetooth

  install -Dm755 test/simple-agent \
    $PKG/usr/bin/bluez-simple-agent
}