X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/0c35793e53463814a17a92f130b94067e09e01c1..45861c16cc6b6beb2cc86e23bcf9bf7a528ddeca:/packages/mpd/build.sh diff --git a/packages/mpd/build.sh b/packages/mpd/build.sh index 67c24139..9e694355 100644 --- a/packages/mpd/build.sh +++ b/packages/mpd/build.sh @@ -1,11 +1,9 @@ -TERMUX_PKG_HOMEPAGE="https://www.musicpd.org" -TERMUX_PKG_DESCRIPTION="music player daemon" -TERMUX_PKG_VERSION=0.20.8 -TERMUX_PKG_REVISION=1 +TERMUX_PKG_HOMEPAGE=https://www.musicpd.org +TERMUX_PKG_DESCRIPTION="Music player daemon" +TERMUX_PKG_VERSION=0.20.19 +TERMUX_PKG_SHA256=85cbd5ed18a12236e6a413dd36be342099d00596cb24df6e011888e9dab5ac59 TERMUX_PKG_SRCURL=https://github.com/MusicPlayerDaemon/MPD/archive/v$TERMUX_PKG_VERSION.tar.gz -TERMUX_PKG_FOLDERNAME=MPD-$TERMUX_PKG_VERSION -TERMUX_PKG_SHA256=b3ced73b44cf432ac8906deeb803e69235c1286b34c6986029ecf4fe8e351128 -TERMUX_PKG_DEPENDS="libcurl, libid3tag, libopus, libevent, fftw, libpulseaudio, libmpdclient, boost, openal-soft, libvorbis, libsqlite, ffmpeg" +TERMUX_PKG_DEPENDS="libcurl, libid3tag, libopus, libevent, fftw, libpulseaudio, libmpdclient, boost, openal-soft, libvorbis, libsqlite, ffmpeg, libmp3lame, libbz2" TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --disable-alsa --disable-ao @@ -16,6 +14,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --disable-mad --disable-sndio --without-tremor +ac_cv_func_linkat=no " TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_CONFFILES="$TERMUX_PREFIX/etc/mpd.conf" @@ -47,8 +46,8 @@ termux_step_make_install () { # Work around issues on devices having ffmpeg libraries # in a system vendor dir, reported by live_the_dream on #termux: local FFMPEG_LIBS="" lib - # gnustl_shared needs to go first in every c++ app that uses audio directly. - for lib in gnustl_shared curl ssl event opus vorbis avcodec avfilter avformat avutil postproc swresample swscale sqlite3; do + # c++_shared needs to go first in every c++ app that uses audio directly. + for lib in c++_shared curl ssl event opus vorbis avcodec avfilter avformat avutil postproc swresample swscale sqlite3; do if [ -n "$FFMPEG_LIBS" ]; then FFMPEG_LIBS+=":"; fi FFMPEG_LIBS+="$TERMUX_PREFIX/lib/lib${lib}.so" done @@ -60,5 +59,6 @@ termux_step_make_install () { } termux_step_create_debscripts() { + echo "#!$TERMUX_PREFIX/bin/sh" > postinst echo 'mkdir -p $HOME/.mpd/playlists' >> postinst }