syncthing: Update from 0.14.39 to 0.14.40
[termux-packages] / packages / libpulseaudio / build.sh
1 TERMUX_PKG_HOMEPAGE=https://www.freedesktop.org/wiki/Software/PulseAudio
2 TERMUX_PKG_DESCRIPTION="A featureful, general-purpose sound server - shared libraries"
3 TERMUX_PKG_VERSION=11.1
4 TERMUX_PKG_REVISION=1
5 TERMUX_PKG_SHA256=f2521c525a77166189e3cb9169f75c2ee2b82fa3fcf9476024fbc2c3a6c9cd9e
6 TERMUX_PKG_SRCURL=https://www.freedesktop.org/software/pulseaudio/releases/pulseaudio-${TERMUX_PKG_VERSION}.tar.xz
7 TERMUX_PKG_DEPENDS="libltdl, libsndfile, libandroid-glob"
8 TERMUX_PKG_BUILD_DEPENDS="libtool"
9 TERMUX_PKG_INCLUDE_IN_DEVPACKAGE="share/vala"
10 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-neon-opt
11 --disable-alsa
12 --disable-esound
13 --disable-glib2
14 --disable-openssl
15 --without-caps
16 --with-database=simple
17 --disable-memfd"
18 TERMUX_PKG_CONFFILES="etc/pulse/client.conf etc/pulse/daemon.conf etc/pulse/dafault.pa etc/pulse/system.pa"
19
20 termux_step_pre_configure () {
21 LDFLAGS+=" -llog -landroid-glob"
22 }
23
24 termux_step_post_make_install () {
25 # Some binaries link against these:
26 cd $TERMUX_PREFIX/lib
27 for lib in pulseaudio/lib*.so* pulse-${TERMUX_PKG_VERSION}/modules/lib*.so*; do
28 ln -s -f $lib `basename $lib`
29 done
30
31 # Pulseaudio fails to start when it cannot detect any sound hardware
32 # so disable hardware detection.
33 sed -i $TERMUX_PREFIX/etc/pulse/default.pa \
34 -e '/^load-module module-detect$/s/^/#/'
35 }