@hayao Partial updates are not supported under arch linux so anyone upgrading an AUR package without upgrading the whole system (which could lead to a newer version of this package compared to system pulseaudio version) is on its own. The beauty of a distro with rolling releases. I'd much prefer a simple PKGBUILD since I'm currently having trouble building this package inside a clean chroot (https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_clean_chroot).
Search Criteria
Package Details: pulseaudio-modules-bt 1.4_14.2-8
Git Clone URL: | https://aur.archlinux.org/pulseaudio-modules-bt.git (read-only, click to copy) |
---|---|
Package Base: | pulseaudio-modules-bt |
Description: | PulseAudio Bluetooth modules with SBC, AAC, APTX, APTX-HD, Sony LDAC (A2DP codec) support |
Upstream URL: | https://github.com/EHfive/pulseaudio-modules-bt |
Licenses: | |
Conflicts: | |
Provides: | |
Submitter: | hayao |
Maintainer: | hayao |
Last Packager: | hayao |
Votes: | 19 |
Popularity: | 2.32 |
First Submitted: | 2020-04-14 12:08 |
Last Updated: | 2021-01-27 08:26 |
Dependencies (11)
- bluez (bluez-ps3, bluez-git)
- bluez-libs (bluez-git)
- libfdk-aac.so (fdk-aac-free, libfdk-aac)
- sbc
- pulseaudio>=12.0 (pulseaudio-bluedio, pulseaudio-pali, pulseaudio-airplay, pulseaudio-git, pulseaudio-hsphfpd, pulseaudio-dummy, pulseaudio-nosystemd-git, pulseaudio-nosystemd-minimal-git, pipewire-pulse-git, pipewire-common-pulse-git, pipewire-full-pulse-git, pipewire-pulse)
- libldac (make)
- libpulse (libpulse-bluedio, pulseaudio-pali, libpulse-airplay, pulseaudio-git, libpulse-hsphfpd, pulseaudio-dummy, libpulse-nosystemd, libpulse-nosystemd-git, libpulse-nosystemd-minimal-git) (make)
- cmake>=3.0 (cmake-git) (make)
- libavcodec.so>=58 (lib32-ffmpeg-semifull-git, ffmpeg-semifull-git, ffmpeg-full3.4, ffmpeg-tmblock-git, ffmpeg-compat-54, ffmpeg4.0, ffmpeg-compat-55, ffmpeg-cuda, ffmpeg-v4l2-request-git, ffmpeg0.10, ffmpeg-svt, ffmpeg2.8, ffmpeg-headless, ffmpeg-gl-transition, ffmpeg-git, ffmpeg-decklink, ffmpeg-intel-full-git, lib32-ffmpeg-compat-57, ffmpeg-mmal, ffmpeg-svt-av1-git, ffmpeg-libfdk_aac, ffmpeg-full, ffmpeg-nox-git, ffmpeg-svt-vp9-git, ffmpeg3.4, ffmpeg-nocuda, ffmpeg-ndi, lib32-libffmpeg, ffmpeg-amd-full, ffmpeg-full-git, ffmpeg-amd-full-git, ffmpeg-compat-57, ffmpeg) (make)
- libldac (optional) – LDAC support
- libavcodec.so>=58 (lib32-ffmpeg-semifull-git, ffmpeg-semifull-git, ffmpeg-full3.4, ffmpeg-tmblock-git, ffmpeg-compat-54, ffmpeg4.0, ffmpeg-compat-55, ffmpeg-cuda, ffmpeg-v4l2-request-git, ffmpeg0.10, ffmpeg-svt, ffmpeg2.8, ffmpeg-headless, ffmpeg-gl-transition, ffmpeg-git, ffmpeg-decklink, ffmpeg-intel-full-git, lib32-ffmpeg-compat-57, ffmpeg-mmal, ffmpeg-svt-av1-git, ffmpeg-libfdk_aac, ffmpeg-full, ffmpeg-nox-git, ffmpeg-svt-vp9-git, ffmpeg3.4, ffmpeg-nocuda, ffmpeg-ndi, lib32-libffmpeg, ffmpeg-amd-full, ffmpeg-full-git, ffmpeg-amd-full-git, ffmpeg-compat-57, ffmpeg) (optional) – aptX Classic, aptX HD support
Required by (6)
- bluedevil-git (requires pulseaudio-bluetooth) (optional)
- fix-bt-a2dp (requires pulseaudio-bluetooth)
- gnome-bluetooth-pantheon (requires pulseaudio-bluetooth)
- kana-p-git (requires pulseaudio-bluetooth)
- pulseaudio-nosystemd-git (requires pulseaudio-bluetooth) (optional)
- pulseaudio-nosystemd-minimal-git (requires pulseaudio-bluetooth) (optional)
Sources (2)
gilbus commented on 2021-01-24 14:44
hayao commented on 2021-01-23 07:25
@jonathon At first I tried to use simple pulseaudio version like yours. But I tought that it causes the ploblem for peoples using old pulseaudio version. In fact I have no idea the correct way to implement. How shoud I do ?
jonathon commented on 2021-01-21 16:09
Obtaining the installed package version is unreliable and not reproducible - it's probably better to just version it explicitly against the current version of Pulseaudio in stable. (People on testing should know how to deal with this sort of library-related issue themselves.)
git diff
to simplify things a bit:
diff --git a/.SRCINFO b/.SRCINFO
index 8d2cdd6..058eef8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -10,26 +10,22 @@ pkgbase = pulseaudio-modules-bt
arch = armv7h
arch = aarch64
license = GPL3
- makedepends = libpulse
makedepends = cmake>=3.0
makedepends = libavcodec.so>=58
makedepends = libldac
- depends = pulseaudio>=12.0
+ depends = pulseaudio=14.2
depends = bluez
depends = bluez-libs
depends = sbc
depends = libfdk-aac.so
optdepends = libavcodec.so>=58: aptX Classic, aptX HD support
optdepends = libldac: LDAC support
- optdepends = pulseaudio=14.2: This package requires a specific PulseAudio version
provides = pulseaudio-bluetooth
conflicts = pulseaudio-bluetooth
- source = pulseaudio-modules-bt-1.4.zip::https://github.com/EHfive/pulseaudio-modules-bt/archive/v1.4.zip
- source = pulseaudio-14.2.zip::https://github.com/pulseaudio/pulseaudio/archive/v14.2.zip
- md5sums = 711a7f930321e56706acdb441de0e432
- md5sums = SKIP
- sha512sums = 5c3ed59dec46a1a9cc2f359ac1d28a82a50a5dea47a268a10601b95a8e17a68dd00ba7628c429271349bae290f461abeb1a4a3715b1833c71d7f82f9a902fe2d
- sha512sums = SKIP
+ source = pulseaudio-modules-bt-1.4.tar.gz::https://github.com/EHfive/pulseaudio-modules-bt/archive/v1.4.tar.gz
+ source = pulseaudio-14.2.tar.gz::https://github.com/pulseaudio/pulseaudio/archive/v14.2.tar.gz
+ b2sums = 845489e1dda12afd270bd63292b83a3fedd6508c1f2b35de8b748fd91f876e8c14109d5c97d5cd1af65157ca684fc4ef95688a9851df2248ac197d3bbe5bb09d
+ b2sums = cff7403df49ff23766d2307cce398d84fb8a021296129459bc5c521a95e5c4cfcb3177ac8c83425b9f6893804c444c2b6e52e3f84033675574680861c572accb
pkgname = pulseaudio-modules-bt
diff --git a/PKGBUILD b/PKGBUILD
old mode 100755
new mode 100644
index 442414f..5aef413
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,74 +2,38 @@
# Contributor: EHfive <eh5@sokka.cn>
# Contributar: tleydxdy https://aur.archlinux.org/packages/pulseaudio-modules-bt/#comment-786420
-get_pulseaudio_version() {
- #local _ver="$(pkg-config libpulse --modversion|sed 's/[^0-9.]*\([0-9.]*\).*/\1/')"
- #local _ver="$(pacman -Q "$(basename "${pulseaudio_pkgname}")" | cut -d ' ' -f 2 | cut -d '-' -f 1)"
- local _ver="$(pulseaudio --version | cut -d " " -f 2)"
- printf "${_ver:-14.2}"
-}
-
-#-- PulseAudio --#
-pulseaudio_pkgname="pulseaudio"
-pulseaudio_ver="$(get_pulseaudio_version)"
-
-pkgname="pulseaudio-modules-bt"
-module_ver="1.4"
-pkgver="${module_ver}_${pulseaudio_ver}"
-pkgrel="7"
+pkgname=pulseaudio-modules-bt
+_module_ver=1.4
+_pulseaudio_ver=14.2
+pkgver=${_module_ver}_${_pulseaudio_ver}
+pkgrel=7
pkgdesc="PulseAudio Bluetooth modules with SBC, AAC, APTX, APTX-HD, Sony LDAC (A2DP codec) support"
arch=("i686" "x86_64" "arm" "armv6h" "armv7h" "aarch64")
url="https://github.com/EHfive/pulseaudio-modules-bt"
license=('GPL3')
-depends=("pulseaudio>=12.0" "bluez" "bluez-libs" "sbc" "libfdk-aac.so")
-makedepends=("libpulse" "cmake>=3.0" "libavcodec.so>=58" "libldac")
+depends=("pulseaudio=${_pulseaudio_ver}" "bluez" "bluez-libs" "sbc" "libfdk-aac.so")
+makedepends=("cmake>=3.0" "libavcodec.so>=58" "libldac")
optdepends=(
"libavcodec.so>=58: aptX Classic, aptX HD support"
"libldac: LDAC support"
- "pulseaudio=${pulseaudio_ver}: This package requires a specific PulseAudio version"
)
provides=("pulseaudio-bluetooth")
conflicts=("pulseaudio-bluetooth")
-source=("pulseaudio-modules-bt-${module_ver}.zip::https://github.com/EHfive/pulseaudio-modules-bt/archive/v${module_ver}.zip")
-
-
-if [[ ! "$(pacman -Qq "${pulseaudio_pkgname}" 2> /dev/null)" = "pulseaudio" ]]; then
- source+=("git+https://github.com/pulseaudio/pulseaudio.git")
- pulseaudio_dir="pulseaudio"
- pkgver() {
- cd pulseaudio
- printf "%s_%s" "${module_ver}" "$(git rev-parse --short HEAD)"
- }
-else
- source+=("pulseaudio-${pulseaudio_ver}.zip::https://github.com/pulseaudio/pulseaudio/archive/v${pulseaudio_ver}.zip")
- pulseaudio_dir="pulseaudio-${pulseaudio_ver}"
- pkgver() {
- printf "%s_%s" "${module_ver}" "$(get_pulseaudio_version)"
- }
-fi
-
-md5sums=(
- '711a7f930321e56706acdb441de0e432'
- 'SKIP'
-)
-
-sha512sums=(
- "5c3ed59dec46a1a9cc2f359ac1d28a82a50a5dea47a268a10601b95a8e17a68dd00ba7628c429271349bae290f461abeb1a4a3715b1833c71d7f82f9a902fe2d"
- "SKIP"
-)
-
+source=(pulseaudio-modules-bt-${_module_ver}.tar.gz::$url/archive/v${_module_ver}.tar.gz
+ pulseaudio-${_pulseaudio_ver}.tar.gz::https://github.com/pulseaudio/pulseaudio/archive/v${_pulseaudio_ver}.tar.gz)
+b2sums=('845489e1dda12afd270bd63292b83a3fedd6508c1f2b35de8b748fd91f876e8c14109d5c97d5cd1af65157ca684fc4ef95688a9851df2248ac197d3bbe5bb09d'
+ 'cff7403df49ff23766d2307cce398d84fb8a021296129459bc5c521a95e5c4cfcb3177ac8c83425b9f6893804c444c2b6e52e3f84033675574680861c572accb')
prepare() {
- cd "${srcdir}/pulseaudio-modules-bt-${module_ver}"
+ cd pulseaudio-modules-bt-${_module_ver}
rm -rf pa
- ln -sf -T "../${pulseaudio_dir}" "pa"
+ ln -sf -T ../pulseaudio-${_pulseaudio_ver} pa
}
build() {
- cd "${srcdir}/pulseaudio-modules-bt-${module_ver}"
- rm -rf build
+ cd pulseaudio-modules-bt-${_module_ver}
mkdir build
cd build
cmake \
@@ -81,6 +45,6 @@ build() {
}
package() {
- cd "${srcdir}/pulseaudio-modules-bt-${module_ver}/build"
+ cd pulseaudio-modules-bt-${_module_ver}/build
make DESTDIR="${pkgdir}" install
}
oscareczek commented on 2021-01-21 13:34
@hayao nope
hayao commented on 2021-01-21 13:22
@oscareczek It may have been fixed
oscareczek commented on 2021-01-21 12:55
$ git clone https://aur.archlinux.org/pulseaudio-modules-bt.git 2> /dev/null && cd pulseaudio-modules-bt && makepkg -si
==> ERROR: pkgver is not allowed to contain colons, forward slashes, hyphens or whitespace.
==> ERROR: pkgrel in optdepends must be of the form 'integer[.integer]', not dirty.
$
hayao commented on 2021-01-20 07:20
@bertino Sorry, I forgot testing repo I will fix PKGBUILD.
bertino commented on 2021-01-19 17:43
I am running the testing repos, so I my version of pulesaudio doesn't have a corresponding pulseaudio-modules-bt version, so the download fails. Would it be possible to accomodate this by getting the pkgver of the pulseaudio from the stable repos?
hayao commented on 2021-01-18 09:05
@jokke Please tell me the pkgver that is outputed from makepkg.The error may be the wrong value of variable pulseaudio_ver
jokke commented on 2021-01-18 08:17
Build fails in chroot. It produces an invalid pkgver (containing either hyphens, whitespace or other invalid chars). Please check with extra-x86_64-build
Pinned Comments
hayao commented on 2020-10-10 02:06
I'm just providing the package. Please report the bug of the module body upstream.