Browse Source

libpulseaudio: don't use wrappers for /bin/ progs

emacs-27
Leonid Plyushch 6 years ago
parent
commit
d09adaf13a
  1. 17
      packages/libpulseaudio/build.sh

17
packages/libpulseaudio/build.sh

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.freedesktop.org/wiki/Software/PulseAudio
TERMUX_PKG_DESCRIPTION="A featureful, general-purpose sound server - shared libraries"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=12.2
TERMUX_PKG_REVISION=13
TERMUX_PKG_REVISION=14
TERMUX_PKG_SHA256=809668ffc296043779c984f53461c2b3987a45b7a25eb2f0a1d11d9f23ba4055
TERMUX_PKG_SRCURL=https://www.freedesktop.org/software/pulseaudio/releases/pulseaudio-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_DEPENDS="libltdl, libsndfile, libandroid-glob, libsoxr, speexdsp"
@ -19,7 +19,6 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-neon-opt
--with-database=simple
--disable-memfd
--disable-gsettings
--bindir=$TERMUX_PREFIX/libexec
ax_cv_PTHREAD_PRIO_INHERIT=no
ac_cv_func_posix_madvise=no"
@ -62,18 +61,4 @@ termux_step_post_make_install() {
-e '/^load-module module-detect$/s/^/#/'
echo "load-module module-sles-sink" >> $TERMUX_PREFIX/etc/pulse/default.pa
echo "#load-module module-aaudio-sink" >> $TERMUX_PREFIX/etc/pulse/default.pa
if [ "$TERMUX_ARCH_BITS" = 32 ]; then
SYSTEM_LIB=lib
else
SYSTEM_LIB=lib64
fi
cd $TERMUX_PREFIX/libexec
for bin in pacat pacmd pactl pasuspender pulseaudio; do
rm -f ../bin/$bin
echo "#!$TERMUX_PREFIX/bin/sh" >> ../bin/$bin
echo "LD_LIBRARY_PATH=/system/$SYSTEM_LIB:/system/vendor/$SYSTEM_LIB:$TERMUX_PREFIX/lib exec $TERMUX_PREFIX/libexec/$bin \"\$@\"" >> ../bin/$bin
chmod +x ../bin/$bin
done
}

Loading…
Cancel
Save