Last active
April 12, 2025 05:55
-
-
Save jpasquier/65e95707089f79d9406fa8e7f9e96eb0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
initial_directory=$(pwd) | |
temp_directory=$(mktemp -d) | |
build_directory=$(mktemp -d) | |
cd $temp_directory | |
wget https://ppa.launchpadcontent.net/aglasgall/pipewire-extra-bt-codecs/ubuntu/pool/main/p/pipewire/libspa-0.2-bluetooth_0.3.65-4%7Eglasgall1_amd64.deb | |
dpkg -x $(ls *.deb) $temp_directory | |
mkdir $build_directory/DEBIAN | |
mkdir -p $build_directory/usr/lib/x86_64-linux-gnu/spa-0.2/bluez5/ | |
mv $temp_directory/usr/lib/x86_64-linux-gnu/spa-0.2/bluez5/libspa-codec-bluez5-aac.so \ | |
$build_directory/usr/lib/x86_64-linux-gnu/spa-0.2/bluez5/ | |
cat >"$build_directory/DEBIAN/control"<<'EOL' | |
Package: libspa-codec-bluez5-aac | |
Source: libspa-codec-bluez5-aac | |
Version: 0.3.65 | |
Architecture: amd64 | |
Maintainer: jpas78 <[email protected]> | |
Depends: libfdk-aac-dev | |
Section: libs | |
Priority: optional | |
Multi-Arch: same | |
Homepage: https://pipewire.org/ | |
Description: AAC library for the PipeWire multimedia server - bluetooth plugins | |
EOL | |
deb_file=libspa-codec-bluez5-aac_0.3.65_amd64.deb | |
fakeroot dpkg -b $build_directory $deb_file | |
mv $deb_file $initial_directory/ | |
cd $initial_directory | |
rm -rf $temp_directory $build_directory |
worked perfectly on debian 12 to connect my AirPods Pro 2. Thank you!!
Thank you!
I found this via https://unix.stackexchange.com/a/761200/392028
These steps worked for me on Debian 12:
git clone [email protected]:65e95707089f79d9406fa8e7f9e96eb0.git debian12-airpods
cd debian12-airpods
chmod +x build-libspa-codec-bluez5-aac.sh
./build-libspa-codec-bluez5-aac.sh # this creates ./libspa-codec-bluez5-aac_0.3.65_amd64.deb
sudo apt --fix-broken install ./libspa-codec-bluez5-aac_0.3.65_amd64.deb
sudo apt info libspa-codec-bluez5-aac
is it enough to run the script one time? or need i run it every time when i connect my wireless headphone or when i restart my Pc
Hello, the script only builds a Debian package. When the package is built, you still have to install it with sudo apt install ./libspa-codec-bluez5-aac_0.3.65_amd64.deb
. After that, you're done.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
carai!, resolveu manuuuuu!!!!; parabéns