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