From b832afe675eb3c31c4a7a2680532f080d88f0402 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Wed, 8 Jan 2020 19:58:54 +0100 Subject: [PATCH] mpdscribble: add termux-services script --- packages/mpdscribble/build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/mpdscribble/build.sh b/packages/mpdscribble/build.sh index 252ce27ec..9fffeb5f3 100644 --- a/packages/mpdscribble/build.sh +++ b/packages/mpdscribble/build.sh @@ -3,11 +3,17 @@ TERMUX_PKG_DESCRIPTION="A Music Player Daemon (MPD) client which submits informa TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91" TERMUX_PKG_VERSION=0.22 -TERMUX_PKG_REVISION=3 +TERMUX_PKG_REVISION=4 TERMUX_PKG_SRCURL=https://github.com/MusicPlayerDaemon/mpdscribble/archive/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=9f6d73e1d0d44bf782c199732acc91bb07efc1c02ae04d037d711860dd8e4012 TERMUX_PKG_DEPENDS="libcurl, mpd, libmpdclient, glib" TERMUX_PKG_CONFFILES="etc/mpdscribble.conf" +# 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=( + "mpdscribble" 'if [ -f "$HOME/.mpdscribble/mpdscribble.conf" ]; then CONFIG="$HOME/.mpdscribble/mpdscribble.conf"; else CONFIG="$PREFIX/etc/mpdscribble.conf"; fi\nexec mpdscribble -D --log /proc/self/fd/1 --conf $CONFIG' + "mpdscribble/log" 'mkdir -p "$LOGDIR/sv/mpdscribble"\nexec svlogd "$LOGDIR/sv/mpdscribble"' +) termux_step_pre_configure () { NOCONFIGURE=1 ./autogen.sh