contrib/bluez/Pkgfile

38 lines
1.2 KiB
Plaintext
Raw Normal View History

2019-08-24 00:04:22 +02:00
# Description: Bluetooth libraries and utilities
2023-12-15 13:20:10 +01:00
# URL: https://www.bluez.org/
2019-08-24 00:04:22 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: dbus glib
# Optional: alsa-lib cups python3-docutils json-c libical
2019-08-24 00:04:22 +02:00
name=bluez
2024-04-16 21:51:00 +02:00
version=5.75
2024-03-09 23:28:09 +01:00
release=1
2019-08-24 00:04:22 +02:00
source=(https://mirrors.edge.kernel.org/pub/linux/bluetooth/bluez-$version.tar.xz
2024-03-09 23:28:09 +01:00
bluetoothd.service)
2019-08-24 00:04:22 +02:00
build() {
cd bluez-$version
prt-get isinst alsa-lib && PKGMK_BLUEZ+=' --enable-midi'
2024-03-09 23:28:09 +01:00
#prt-get isinst cups || PKGMK_BLUEZ+=' --disable-cups'
prt-get isinst python3-docutils || PKGMK_BLUEZ+=' --disable-manpages'
prt-get isinst json-c && PKGMK_BLUEZ+=' --enable-mesh'
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 \
--enable-{a2dp,experimental,hid2hci,library,tools} \
2019-08-24 00:04:22 +02:00
--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
2024-03-09 23:28:09 +01:00
prt-get isinst zsh || rm -rf $PKG/usr/share/zsh
2021-12-14 11:29:38 +01:00
2019-08-24 00:04:22 +02:00
install -D -m 0644 src/main.conf $PKG/etc/bluetooth/main.conf
2024-01-06 23:18:27 +01:00
install -D -m 0755 $SRC/bluetoothd.service $PKG/etc/rc.d/bluetoothd
2019-08-24 00:04:22 +02:00
}