termux-packages/packages/mpd/build.sh

36 lines
1.1 KiB
Bash
Raw Normal View History

2018-02-12 20:19:51 +01:00
TERMUX_PKG_HOMEPAGE=https://www.musicpd.org
TERMUX_PKG_DESCRIPTION="Music player daemon"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="GPL-2.0"
2019-07-07 13:17:16 +02:00
TERMUX_PKG_VERSION=0.21.11
TERMUX_PKG_SRCURL=https://github.com/MusicPlayerDaemon/MPD/archive/v$TERMUX_PKG_VERSION.tar.gz
2019-07-07 13:17:16 +02:00
TERMUX_PKG_SHA256=e12a239cd09e93066d9d83b3a9d0148df367d1f31586a6b0fbad40038a93b310
2019-06-19 23:38:11 +02:00
TERMUX_PKG_DEPENDS="libc++, libcurl, libid3tag, libopus, libpulseaudio, libmpdclient, openal-soft, libvorbis, libsqlite, ffmpeg, libmp3lame, libbz2, libogg, libnfs, zlib"
2019-01-07 02:04:31 +01:00
TERMUX_PKG_BUILD_DEPENDS="boost"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
2019-01-03 00:49:06 +01:00
-Dalsa=disabled
-Dao=disabled
-Depoll=false
-Dexpat=disabled
-Diconv=disabled
-Dicu=disabled
-Dmad=disabled
-Dpcre=disabled
-Dsndio=disabled
"
TERMUX_PKG_CONFFILES="$TERMUX_PREFIX/etc/mpd.conf"
termux_step_pre_configure() {
CXXFLAGS+=" -DTERMUX -UANDROID"
2019-05-18 03:22:19 +02:00
LDFLAGS+=" -llog -lOpenSLES"
2019-01-03 00:49:06 +01:00
rm -f $TERMUX_PREFIX/etc/mpd.conf
}
termux_step_post_make_install() {
install -Dm600 $TERMUX_PKG_SRCDIR/doc/mpdconf.example $TERMUX_PREFIX/etc/mpd.conf
}
termux_step_create_debscripts() {
2017-08-15 07:09:08 +02:00
echo "#!$TERMUX_PREFIX/bin/sh" > postinst
echo 'mkdir -p $HOME/.mpd/playlists' >> postinst
}