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: GPL3
Conflicts: pulseaudio-bluetooth
Provides: pulseaudio-bluetooth
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)

Required by (6)

Sources (2)

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.

Latest Comments

1 2 3 Next › Last »

gilbus commented on 2021-01-24 14:44

@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).

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