Last active
May 2, 2021 01:46
pulseaudio-module-bluetooth with LDAC support for Ubuntu and (untested) Debian · https://files.catbox.moe/i1tsk1.deb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PULSE_VERSION="$(pkg-config libpulse --modversion)" | |
PACKAGE_DIR="$(mktemp -d)" | |
SRC_DIR="$(mktemp -d)" | |
if [[ "x${PULSE_VERSION}x" == "x11.1x" ]]; then | |
git clone --depth=1 --branch=pulseaudio_v11.x https://github.com/EHfive/pulseaudio-modules-bt.git "${SRC_DIR}" | |
else | |
git clone --depth=1 https://github.com/EHfive/pulseaudio-modules-bt.git "${SRC_DIR}" | |
fi | |
pushd "${SRC_DIR}" > /dev/null | |
git submodule update --init | |
git -C pa/ checkout "v${PULSE_VERSION}" | |
VERSION="${PULSE_VERSION}-9ehfive~$(git rev-parse --short HEAD)" | |
mkdir build | |
cd build | |
cmake .. | |
make | |
make install DESTDIR="${PACKAGE_DIR}" | |
popd > /dev/null | |
mkdir "${PACKAGE_DIR}/DEBIAN/" | |
cat > "${PACKAGE_DIR}/DEBIAN/control" << EOF | |
Package: pulseaudio-module-bluetooth-ldap | |
Version: ${VERSION} | |
$(dpkg -s pulseaudio-module-bluetooth | egrep '^(Architecture:|Depends:|Breaks:)') | |
Replaces: pulseaudio-module-bluetooth | |
Maintainer: Alexander Pushkov <alexander@notpushk.in> | |
Original-Maintainer: EHfive <i@eh5.me> | |
Description: PulseAudio Bluetooth modules with Sony LDAC Codec support | |
Priority: extra | |
Section: sound | |
Homepage: https://github.com/EHfive/pulseaudio-modules-bt | |
EOF | |
dpkg-deb -b "${PACKAGE_DIR}" "./pulseaudio-module-bluetooth-ldap_${VERSION}.deb" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Build dependencies:
libsbc-dev libdbus-1-dev libbluetooth-dev libpulse-dev libltdl-dev