Skip to content

Instantly share code, notes, and snippets.

@notpushkin
Last active May 2, 2021 01:46
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save notpushkin/f84fa287762ceb2756e77434dede1bc1 to your computer and use it in GitHub Desktop.
Save notpushkin/f84fa287762ceb2756e77434dede1bc1 to your computer and use it in GitHub Desktop.
pulseaudio-module-bluetooth with LDAC support for Ubuntu and (untested) Debian · https://files.catbox.moe/i1tsk1.deb
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"
@notpushkin
Copy link
Author

notpushkin commented Sep 22, 2018

Build dependencies: libsbc-dev libdbus-1-dev libbluetooth-dev libpulse-dev libltdl-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment