2019-08-23 22:04:22 +00:00
|
|
|
# Description: Bluetooth libraries and utilities
|
2020-06-01 15:45:48 +00:00
|
|
|
# URL: http://www.bluez.org/
|
2019-08-23 22:04:22 +00:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: alsa-lib dbus glib
|
2021-06-14 10:18:21 +00:00
|
|
|
# Optional: cups docutils libical
|
2019-08-23 22:04:22 +00:00
|
|
|
|
|
|
|
name=bluez
|
2021-10-14 14:39:17 +02:00
|
|
|
version=5.62
|
2019-08-23 22:04:22 +00:00
|
|
|
release=1
|
|
|
|
source=(https://mirrors.edge.kernel.org/pub/linux/bluetooth/bluez-$version.tar.xz
|
2020-02-16 17:10:57 +01:00
|
|
|
bluetoothd)
|
2019-08-23 22:04:22 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd bluez-$version
|
|
|
|
|
2021-06-14 10:18:21 +00:00
|
|
|
prt-get isinst cups && PKGMK_BLUEZ+=' --enable-cups' || PKGMK_BLUEZ+=' --disable-cups'
|
|
|
|
prt-get isinst docutils || PKGMK_BLUEZ+=' --disable-manpages'
|
|
|
|
prt-get isinst libical && PKGMK_BLUEZ+=' --enable-obex' || PKGMK_BLUEZ+=' --disable-obex'
|
2019-08-23 22:04:22 +00:00
|
|
|
|
|
|
|
./configure $PKGMK_BLUEZ \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
2020-09-22 20:01:00 +00:00
|
|
|
--libexecdir=/usr/lib \
|
2019-08-23 22:04:22 +00:00
|
|
|
--enable-{a2dp,experimental,library,midi,tools} \
|
|
|
|
--disable-systemd
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
install -D -m 0644 src/main.conf $PKG/etc/bluetooth/main.conf
|
|
|
|
install -D -m 0755 $SRC/bluetoothd $PKG/etc/rc.d/bluetoothd
|
2021-06-14 10:18:21 +00:00
|
|
|
prt-get isinst libical && install -D -m 0755 tools/obexctl $PKG/usr/lib/bluetooth/obexctl || true
|
2019-08-23 22:04:22 +00:00
|
|
|
}
|