2018-11-24 18:11:40 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.musicpd.org/clients/mpdscribble/
|
|
|
|
TERMUX_PKG_DESCRIPTION="A Music Player Daemon (MPD) client which submits information about tracks being played to a scrobbler"
|
2019-07-25 16:07:17 +02:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2018-11-24 18:11:40 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91"
|
2022-04-18 12:57:48 +02:00
|
|
|
TERMUX_PKG_VERSION=0.24
|
2018-11-24 18:11:40 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/MusicPlayerDaemon/mpdscribble/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2022-04-18 12:57:48 +02:00
|
|
|
TERMUX_PKG_SHA256=efd9dabc9850ff29412eaebd3377f107fe1f0fbc0e7967ee2d73d1967b375bf6
|
2020-09-06 20:17:16 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libcurl, libgcrypt, mpd, libmpdclient, glib"
|
2022-03-01 15:16:18 +01:00
|
|
|
TERMUX_PKG_BUILD_DEPENDS="boost, boost-headers"
|
2019-08-14 13:27:16 +02:00
|
|
|
TERMUX_PKG_CONFFILES="etc/mpdscribble.conf"
|
2020-01-08 19:58:54 +01:00
|
|
|
# mpdscribble already puts timestamps in the info printed to stdout so no need for svlogd -tt,
|
|
|
|
# therefore we override the mpdscribble/log run script
|
|
|
|
TERMUX_PKG_SERVICE_SCRIPT=(
|
2021-10-13 13:21:55 +02:00
|
|
|
"mpdscribble" "if [ -f \"$TERMUX_ANDROID_HOME/.mpdscribble/mpdscribble.conf\" ]; then CONFIG=\"$TERMUX_ANDROID_HOME/.mpdscribble/mpdscribble.conf\"; else CONFIG=\"$TERMUX_PREFIX/etc/mpdscribble.conf\"; fi\nexec mpdscribble -D --log /proc/self/fd/1 --conf \$CONFIG"
|
2020-01-08 19:58:54 +01:00
|
|
|
"mpdscribble/log" 'mkdir -p "$LOGDIR/sv/mpdscribble"\nexec svlogd "$LOGDIR/sv/mpdscribble"'
|
|
|
|
)
|
2022-04-18 12:57:48 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
TERMUX_PKG_UPDATE_TAG_TYPE="newest-tag"
|
2018-11-24 18:11:40 +01:00
|
|
|
|
2020-09-06 20:17:16 +02:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
export BOOST_ROOT=$TERMUX_PREFIX
|
2018-11-24 18:11:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_make_install () {
|
|
|
|
install $TERMUX_PKG_SRCDIR/doc/mpdscribble.conf $TERMUX_PREFIX/etc/
|
|
|
|
}
|
2020-09-06 20:17:16 +02:00
|
|
|
|
2018-11-24 18:11:40 +01:00
|
|
|
termux_step_create_debscripts () {
|
|
|
|
echo "#!$TERMUX_PREFIX/bin/sh" > postinst
|
|
|
|
echo "mkdir -p ~/.mpdscribble" >> postinst
|
|
|
|
echo "exit 0" >> postinst
|
|
|
|
chmod 0755 postinst
|
|
|
|
}
|