2020-12-30 17:38:36 +00:00
|
|
|
# Maintainer : Yamada Hayao <hayao@fascode.net>
|
|
|
|
# Contributor: EHfive <eh5@sokka.cn>
|
2021-01-17 17:23:25 +00:00
|
|
|
# Contributar: tleydxdy https://aur.archlinux.org/packages/pulseaudio-modules-bt/#comment-786420
|
2021-01-29 17:16:18 +00:00
|
|
|
# Contributer: jonathon https://aur.archlinux.org/packages/pulseaudio-modules-bt/#comment-787490
|
2020-12-30 17:38:36 +00:00
|
|
|
|
|
|
|
pkgname="pulseaudio-modules-bt"
|
2021-01-29 17:16:18 +00:00
|
|
|
pulseaudio_ver="14.2"
|
2020-12-30 17:38:36 +00:00
|
|
|
module_ver="1.4"
|
2021-01-29 17:16:18 +00:00
|
|
|
pkgrel="8"
|
2020-12-30 17:38:36 +00:00
|
|
|
pkgver="${module_ver}_${pulseaudio_ver}"
|
|
|
|
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")
|
2021-01-17 17:23:25 +00:00
|
|
|
makedepends=("libpulse" "cmake>=3.0" "libavcodec.so>=58" "libldac")
|
2020-12-30 17:38:36 +00:00
|
|
|
optdepends=(
|
|
|
|
"libavcodec.so>=58: aptX Classic, aptX HD support"
|
|
|
|
"libldac: LDAC support"
|
2021-01-29 17:16:18 +00:00
|
|
|
# "pulseaudio=${pulseaudio_ver}: This package requires a specific PulseAudio version"
|
2020-12-30 17:38:36 +00:00
|
|
|
)
|
2021-01-17 17:23:25 +00:00
|
|
|
provides=("pulseaudio-bluetooth")
|
|
|
|
conflicts=("pulseaudio-bluetooth")
|
2020-12-30 17:38:36 +00:00
|
|
|
|
|
|
|
source=(
|
2021-01-17 17:23:25 +00:00
|
|
|
"pulseaudio-modules-bt-${module_ver}.zip::https://github.com/EHfive/pulseaudio-modules-bt/archive/v${module_ver}.zip"
|
|
|
|
"pulseaudio-${pulseaudio_ver}.zip::https://github.com/pulseaudio/pulseaudio/archive/v${pulseaudio_ver}.zip"
|
2020-12-30 17:38:36 +00:00
|
|
|
)
|
|
|
|
|
2021-01-29 17:16:18 +00:00
|
|
|
|
2020-12-30 17:38:36 +00:00
|
|
|
md5sums=(
|
|
|
|
'711a7f930321e56706acdb441de0e432'
|
|
|
|
'SKIP'
|
|
|
|
)
|
|
|
|
|
|
|
|
sha512sums=(
|
|
|
|
"5c3ed59dec46a1a9cc2f359ac1d28a82a50a5dea47a268a10601b95a8e17a68dd00ba7628c429271349bae290f461abeb1a4a3715b1833c71d7f82f9a902fe2d"
|
|
|
|
"SKIP"
|
|
|
|
)
|
|
|
|
|
2021-01-29 17:16:18 +00:00
|
|
|
|
2020-12-30 17:38:36 +00:00
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/pulseaudio-modules-bt-${module_ver}"
|
|
|
|
rm -rf pa
|
|
|
|
ln -sf -T "../pulseaudio-${pulseaudio_ver}" "pa"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/pulseaudio-modules-bt-${module_ver}"
|
2021-01-29 17:16:18 +00:00
|
|
|
rm -rf build
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2020-12-30 17:38:36 +00:00
|
|
|
cmake \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2021-01-29 17:16:18 +00:00
|
|
|
-S .. \
|
|
|
|
-B . \
|
|
|
|
|
2020-12-30 17:38:36 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-01-29 17:16:18 +00:00
|
|
|
cd "${srcdir}/pulseaudio-modules-bt-${module_ver}/build"
|
2020-12-30 17:38:36 +00:00
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|