contrib/bluez/Pkgfile

35 lines
1.0 KiB
Plaintext
Raw Normal View History

2019-08-24 00:04:22 +02:00
# Description: Bluetooth libraries and utilities
2020-06-01 17:45:48 +02:00
# URL: http://www.bluez.org/
2019-08-24 00:04:22 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: alsa-lib dbus glib
# Optional: cups docutils libical
2019-08-24 00:04:22 +02:00
name=bluez
2022-03-19 03:31:28 +01:00
version=5.64
2019-08-24 00:04:22 +02: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-24 00:04:22 +02:00
build() {
cd bluez-$version
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-24 00:04:22 +02:00
./configure $PKGMK_BLUEZ \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib \
2019-08-24 00:04:22 +02:00
--enable-{a2dp,experimental,library,midi,tools} \
--disable-systemd
make
make DESTDIR=$PKG install
2021-12-14 11:29:38 +01:00
prt-get isinst libical && install -D -m 0755 tools/obexctl $PKG/usr/lib/bluetooth/obexctl
2019-08-24 00:04:22 +02:00
install -D -m 0644 src/main.conf $PKG/etc/bluetooth/main.conf
install -D -m 0755 $SRC/bluetoothd $PKG/etc/rc.d/bluetoothd
}