From 8dee3fffbace1fdb0e814cde5c6f7eb0443b128e Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Mon, 18 Apr 2022 16:27:48 +0530 Subject: [PATCH] feat(mpdscribble): enable auto-update, upgrade to 0.24 Signed-off-by: Aditya Alok --- packages/mpdscribble/build.sh | 7 ++++--- packages/mpdscribble/src-ReadConfig.cxx.patch | 10 +++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/mpdscribble/build.sh b/packages/mpdscribble/build.sh index de91b0a4c..1188831d2 100644 --- a/packages/mpdscribble/build.sh +++ b/packages/mpdscribble/build.sh @@ -2,10 +2,9 @@ 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" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91" -TERMUX_PKG_VERSION=0.23 -TERMUX_PKG_REVISION=6 +TERMUX_PKG_VERSION=0.24 TERMUX_PKG_SRCURL=https://github.com/MusicPlayerDaemon/mpdscribble/archive/v${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_SHA256=8b3b79538fa9871ce61d7fb793d442c72b6aadf80af4c5eb664286f613d1feee +TERMUX_PKG_SHA256=efd9dabc9850ff29412eaebd3377f107fe1f0fbc0e7967ee2d73d1967b375bf6 TERMUX_PKG_DEPENDS="libcurl, libgcrypt, mpd, libmpdclient, glib" TERMUX_PKG_BUILD_DEPENDS="boost, boost-headers" TERMUX_PKG_CONFFILES="etc/mpdscribble.conf" @@ -15,6 +14,8 @@ TERMUX_PKG_SERVICE_SCRIPT=( "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" "mpdscribble/log" 'mkdir -p "$LOGDIR/sv/mpdscribble"\nexec svlogd "$LOGDIR/sv/mpdscribble"' ) +TERMUX_PKG_AUTO_UPDATE=true +TERMUX_PKG_UPDATE_TAG_TYPE="newest-tag" termux_step_pre_configure() { export BOOST_ROOT=$TERMUX_PREFIX diff --git a/packages/mpdscribble/src-ReadConfig.cxx.patch b/packages/mpdscribble/src-ReadConfig.cxx.patch index d20f04ccb..512464bb7 100644 --- a/packages/mpdscribble/src-ReadConfig.cxx.patch +++ b/packages/mpdscribble/src-ReadConfig.cxx.patch @@ -1,11 +1,11 @@ ---- a/src/ReadConfig.cxx 2018-11-23 13:05:51.749928637 +0100 -+++ b/src/ReadConfig.cxx 2018-11-23 13:07:24.143261299 +0100 -@@ -38,7 +38,7 @@ +--- ./ReadConfig.cxx.orig 2022-04-19 09:57:17.420911981 +0000 ++++ ./src/ReadConfig.cxx 2022-04-19 09:58:17.996804455 +0000 +@@ -47,7 +47,7 @@ #ifndef _WIN32 -#define FILE_CACHE "/var/cache/mpdscribble/mpdscribble.cache" +#define FILE_CACHE "@TERMUX_PREFIX@/var/cache/mpdscribble/mpdscribble.cache" - #define FILE_HOME_CONF "~/.mpdscribble/mpdscribble.conf" - #define FILE_HOME_CACHE "~/.mpdscribble/mpdscribble.cache" + + #endif