blob: 642cce503e12518b70c6b3be958034b903080e09 (
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
6 name=bluez
7 version=5.55
8 release=1
9 source=(https://mirrors.edge.kernel.org/pub/linux/bluetooth/bluez-$version.tar.xz
10 bluetoothd)
11
12 build() {
13 cd bluez-$version
14
15 [[ -e /usr/lib/cups ]] && PKGMK_BLUEZ+=" --enable-cups" || PKGMK_BLUEZ+=" --disable-cups"
16 [[ -e /usr/lib/pkgconfig/libical.pc ]] && PKGMK_BLUEZ+=" --enable-obex" || PKGMK_BLUEZ+=" --disable-obex"
17
18 ./configure $PKGMK_BLUEZ \
19 --prefix=/usr \
20 --sysconfdir=/etc \
21 --localstatedir=/var \
22 --libexecdir=/usr/lib \
23 --enable-{a2dp,experimental,library,midi,tools} \
24 --disable-systemd
25 make
26 make DESTDIR=$PKG install
27 install -D -m 0644 src/main.conf $PKG/etc/bluetooth/main.conf
28 install -D -m 0755 $SRC/bluetoothd $PKG/etc/rc.d/bluetoothd
29 [[ -e /usr/lib/pkgconfig/libical.pc ]] && install -D -m 0755 tools/obexctl $PKG/usr/lib/bluetooth/obexctl
30 rm -rf $PKG/usr/share/man/man1
31 }
|