3b00be1b5d
In some circumstances, the user must delete /var/lib/bluetooth if 5.59 created cache files affected by bluez issue #157 [1]. We chose not to automate this procedure, since it would also delete user configurations. Instead, we will keep an INSTALL.msg until the next version bump. [1] https://github.com/bluez/bluez/issues/157
88 lines
2.3 KiB
Bash
88 lines
2.3 KiB
Bash
# Template file for 'bluez'
|
|
pkgname=bluez
|
|
version=5.60
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--with-udevdir=/usr/lib/udev --disable-systemd
|
|
--enable-sixaxis --enable-threads --enable-library --enable-deprecated
|
|
--enable-external-ell $(vopt_enable mesh) $(vopt_enable nfc)
|
|
$(vopt_enable experimental)"
|
|
hostmakedepends="automake flex libtool pkg-config python3-docutils"
|
|
makedepends="cups-devel eudev-libudev-devel libglib-devel libical-devel
|
|
readline-devel ell-devel $(vopt_if mesh json-c-devel)"
|
|
short_desc="Bluetooth tools and daemons"
|
|
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
|
license="GPL-2.0-or-later, LGPL-2.1-or-later"
|
|
homepage="http://www.bluez.org/"
|
|
distfiles="${KERNEL_SITE}/bluetooth/$pkgname-$version.tar.xz"
|
|
checksum=710999580d01ee59ec585e5e7c07fd94eddedc001aa26fe7464c546f9d945304
|
|
conf_files="/etc/bluetooth/main.conf"
|
|
system_groups="bluetooth"
|
|
|
|
build_options="mesh nfc experimental"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
makedepends+=" musl-legacy-compat"
|
|
fi
|
|
|
|
post_patch() {
|
|
# Use system ell
|
|
rm -r ell/*
|
|
}
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_install() {
|
|
vinstall ${wrksrc}/src/main.conf 644 etc/bluetooth
|
|
vsv bluetoothd
|
|
if [ "$build_option_mesh" ]; then
|
|
vsv bluetooth-meshd
|
|
fi
|
|
|
|
vdoc ${FILESDIR}/README.voidlinux
|
|
}
|
|
|
|
libbluetooth_package() {
|
|
short_desc="Library to use the Bluez Linux Bluetooth Stack"
|
|
pkg_install() {
|
|
vmove "usr/lib/libbluetooth.so.*"
|
|
}
|
|
}
|
|
|
|
libbluetooth-devel_package() {
|
|
depends="libbluetooth>=${version}_${revision}"
|
|
short_desc="Development files to use the BlueZ Linux Bluetooth library"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
bluez-cups_package() {
|
|
short_desc="CUPS printer backend for Bluetooth printers"
|
|
pkg_install() {
|
|
vmove usr/lib/cups/backend/bluetooth
|
|
}
|
|
}
|
|
bluez-deprecated_package() {
|
|
short_desc+=" - deprecated tools"
|
|
pkg_install() {
|
|
vmove usr/bin/ciptool
|
|
vmove usr/bin/hciattach
|
|
vmove usr/bin/hciconfig
|
|
vmove usr/bin/hcidump
|
|
vmove usr/bin/hcitool
|
|
vmove usr/bin/rfcomm
|
|
vmove usr/bin/sdptool
|
|
vmove usr/share/man/man1/ciptool.1
|
|
vmove usr/share/man/man1/hciattach.1
|
|
vmove usr/share/man/man1/hciconfig.1
|
|
vmove usr/share/man/man1/hcidump.1
|
|
vmove usr/share/man/man1/hcitool.1
|
|
vmove usr/share/man/man1/rfcomm.1
|
|
vmove usr/share/man/man1/sdptool.1
|
|
}
|
|
}
|