# Maintainer: Yamada Hayao # Maintainer: EHfive pkgname=pulseaudio-modules-bt pkgver=1.4 pulseaudio_ver=13.99.1 pkgrel=1 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=("cmake>=3.0" "libavcodec.so>=58" "libldac" "git") optdepends=("libavcodec.so>=58: aptX Classic, aptX HD support" "libldac: LDAC support") provides=("pulseaudio-bluetooth") conflicts=("pulseaudio-bluetooth" "pulseaudio-modules-bt-git") source=("https://github.com/EHfive/pulseaudio-modules-bt/archive/v${pkgver}.zip" "https://github.com/pulseaudio/pulseaudio/archive/v${pulseaudio_ver}.zip") md5sums=('711a7f930321e56706acdb441de0e432' 'a0af6ae3ad144a11393c5d0cdbcd2951') prepare() { cd "$srcdir/pulseaudio-modules-bt-${pkgver}" rm -rf pa ln -sf -T "../pulseaudio-${pulseaudio_ver}" "pa" # git -C pa checkout v`pkg-config libpulse --modversion|sed 's/[^0-9.]*\([0-9.]*\).*/\1/'` } build() { cd "$srcdir/pulseaudio-modules-bt-${pkgver}" cmake \ -DCMAKE_BUILD_TYPE=Release \ . make } package() { cd "$srcdir/pulseaudio-modules-bt-${pkgver}" make DESTDIR="$pkgdir" install }