libpulseaudio: use TERMUX_PKG_VERSION in LD_PRELOAD

Otherwise it might be easily forgotten at pkg bump.
This commit is contained in:
Henrik Grimler 2018-06-30 17:57:08 +02:00 committed by Fredrik Fornwall
parent 2d0345dbc0
commit 5579a04be4

View File

@ -1,6 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://www.freedesktop.org/wiki/Software/PulseAudio TERMUX_PKG_HOMEPAGE=https://www.freedesktop.org/wiki/Software/PulseAudio
TERMUX_PKG_DESCRIPTION="A featureful, general-purpose sound server - shared libraries" TERMUX_PKG_DESCRIPTION="A featureful, general-purpose sound server - shared libraries"
TERMUX_PKG_VERSION=12.0 TERMUX_PKG_VERSION=12.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=6e422dbdc9fd11c0cb6af869e5eda73dc24a8be3c14725440edd51ce6b464444 TERMUX_PKG_SHA256=6e422dbdc9fd11c0cb6af869e5eda73dc24a8be3c14725440edd51ce6b464444
TERMUX_PKG_SRCURL=https://www.freedesktop.org/software/pulseaudio/releases/pulseaudio-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SRCURL=https://www.freedesktop.org/software/pulseaudio/releases/pulseaudio-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_DEPENDS="libltdl, libsndfile, libandroid-glob, libsoxr" TERMUX_PKG_DEPENDS="libltdl, libsndfile, libandroid-glob, libsoxr"
@ -47,7 +48,7 @@ termux_step_post_make_install () {
for bin in esdcompat pacat pacmd pactl pasuspender pulseaudio; do for bin in esdcompat pacat pacmd pactl pasuspender pulseaudio; do
rm -f ../bin/$bin rm -f ../bin/$bin
local PA_LIBS="" lib local PA_LIBS="" lib
for lib in android-glob pulse pulsecommon-11.1 pulsecore-11.1; do for lib in android-glob pulse pulsecommon-$TERMUX_PKG_VERSION pulsecore-$TERMUX_PKG_VERSION; do
if [ -n "$PA_LIBS" ]; then PA_LIBS+=":"; fi if [ -n "$PA_LIBS" ]; then PA_LIBS+=":"; fi
PA_LIBS+="$TERMUX_PREFIX/lib/lib${lib}.so" PA_LIBS+="$TERMUX_PREFIX/lib/lib${lib}.so"
done done