diff options
author | EHfive | 2018-08-09 13:31:06 +0800 |
---|---|---|
committer | EHfive | 2018-08-09 13:31:06 +0800 |
commit | dbc0014091cdf11ca21fede77061fc3ef4151e19 (patch) | |
tree | d3af4b06f61b57c9b285dea5cfcbb32385c94620 /PKGBUILD | |
download | aur-dbc0014091cdf11ca21fede77061fc3ef4151e19.tar.gz |
Init
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d9da7435bca7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: EHfive <eh5@sokka.cn> + +pkgname=pulseaudio-modules-bt-git +pkgver=578f583 +pkgrel=1 +pkgdesc="PulseAudio Bluetooth modules support Sony LDAC Codec(A2DP Source)" +arch=("i686" "x86_64" "armv7h") +url="https://github.com/EHfive/pulseaudio-modules-bt" +license=('GPL3') +depends=("pulseaudio>=12.0" "bluez>=5.0" "bluez-libs>=5.0" "sbc") +makedepends=("cmake>=3.0" "make" ) +provides=("pulseaudio-bluetooth") +conflicts=("pulseaudio-bluetooth") +replaces=("pulseaudio-bluetooth") + +source=("git+https://github.com/EHfive/pulseaudio-modules-bt" + "git+https://github.com/pulseaudio/pulseaudio.git" + "git+https://android.googlesource.com/platform/external/libldac.git") +noextract=() +md5sums=('SKIP' 'SKIP' 'SKIP') #autofill using updpkgsums + +pkgver() { + cd "$srcdir/pulseaudio-modules-bt" + git describe --always | sed "s/-/./g" +} + +prepare() { + cd "$srcdir/pulseaudio-modules-bt" + rm -r pa libldac + ln -sf -T "../pulseaudio" "pa" + ln -sf -T "../libldac" "libldac" + cd "pa" + git checkout v12.2 +} + +build() { + + cd "$srcdir/pulseaudio-modules-bt" + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr . + make +} + +package() { + cd "$srcdir/pulseaudio-modules-bt" + make DESTDIR="$pkgdir" install +}
\ No newline at end of file |