blob: 379e2596fc93527e5746943714b9afe84e2a7cda (
plain)
1 # Description: Bluetooth libraries and utilities
2 # URL: http://www.bluez.org/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: alsa-lib dbus glib
5 # Optional: cups docutils libical
6
7 name=bluez
8 version=5.61
9 release=1
10 source=(https://mirrors.edge.kernel.org/pub/linux/bluetooth/bluez-$version.tar.xz
11 bluetoothd)
12
13 build() {
14 cd bluez-$version
15
16 prt-get isinst cups && PKGMK_BLUEZ+=' --enable-cups' || PKGMK_BLUEZ+=' --disable-cups'
17 prt-get isinst docutils || PKGMK_BLUEZ+=' --disable-manpages'
18 prt-get isinst libical && PKGMK_BLUEZ+=' --enable-obex' || PKGMK_BLUEZ+=' --disable-obex'
19
20 ./configure $PKGMK_BLUEZ \
21 --prefix=/usr \
22 --sysconfdir=/etc \
23 --localstatedir=/var \
24 --libexecdir=/usr/lib \
25 --enable-{a2dp,experimental,library,midi,tools} \
26 --disable-systemd
27 make
28 make DESTDIR=$PKG install
29 install -D -m 0644 src/main.conf $PKG/etc/bluetooth/main.conf
30 install -D -m 0755 $SRC/bluetoothd $PKG/etc/rc.d/bluetoothd
31 prt-get isinst libical && install -D -m 0755 tools/obexctl $PKG/usr/lib/bluetooth/obexctl || true
32 }
|