Last active
May 2, 2021 01:46
-
-
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
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 <[email protected]> | |
Original-Maintainer: EHfive <[email protected]> | |
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