From 197f5d555f11e69d96046e0e13a6690d85bbd70e Mon Sep 17 00:00:00 2001 From: EnumDev Date: Wed, 12 Nov 2025 13:08:58 +0200 Subject: [PATCH] Enable additional configuration options --- pkg.info | 3 ++- source.sh | 30 +++++++++++++++++++++++++++++- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/pkg.info b/pkg.info index 948361f..31723cc 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: bluez description: Official Linux Bluetooth protocol stack version: "5.84" -revision: 2 +revision: 3 url: https://www.bluez.org/ license: GPL2-or-later,LGPL2.1-or-later architecture: any @@ -9,6 +9,7 @@ type: source depends: - alsa-lib - dbus + - ell - glib - glibc make_depends: diff --git a/source.sh b/source.sh index 3de33a9..f925ee8 100644 --- a/source.sh +++ b/source.sh @@ -2,10 +2,33 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT +# The prepare function is executed in the root of the temp directory +# This function is used for putting downloaded files to the correct location or applying patches +prepare() { + cd "$BPM_SOURCE" + # Remove vendored ell to avoid conflicts + rm -r ell +} + # The build function is executed in the source directory # This function is used to compile the source code build() { - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-library --disable-systemd + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-dbusconfdir=/usr/share \ + --with-udevdir=/usr/lib/udev \ + --enable-btpclient \ + --enable-midi \ + --enable-sixaxis \ + --enable-mesh \ + --enable-hid2hci \ + --enable-experimental \ + --enable-datafiles \ + --enable-external-ell \ + --enable-library \ + --enable-deprecated \ + --disable-systemd } # The check function is executed in the source directory @@ -18,6 +41,11 @@ check() { # This function is used to move the compiled files into the output directory package() { make DESTDIR="$BPM_OUTPUT" install + + # Add missing tools + for _file in $(find tools/ -type f -perm -755 -exec basename {} \;); do + install -Dm755 "$BPM_SOURCE"/tools/$_file "$BPM_OUTPUT"/usr/bin/$_file + done # Symlink bluetooth daemon install -dm755 "$BPM_OUTPUT"/usr/sbin/