transmission: sync patches with x11-packages

This commit is contained in:
Leonid Pliushch 2020-09-23 23:27:35 +03:00
parent 8ef670d186
commit d77d425626
3 changed files with 23 additions and 14 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Easy, lean and powerful BitTorrent client"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_VERSION=3.00
TERMUX_PKG_GIT_BRANCH=$TERMUX_PKG_VERSION
TERMUX_PKG_REVISION=3
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL=https://github.com/transmission/transmission.git
TERMUX_PKG_DEPENDS="libcurl, libevent, miniupnpc, openssl"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-gtk --enable-lightweight --cache-file=termux_configure.cache"

View File

@ -0,0 +1,22 @@
diff --git a/libtransmission/platform.c b/libtransmission/platform.c
index cf0ecd825..1540dbf4f 100644
--- a/libtransmission/platform.c
+++ b/libtransmission/platform.c
@@ -593,7 +593,7 @@ char const* tr_getWebClientDir(tr_session const* session UNUSED)
{
char const* pkg = PACKAGE_DATA_DIR;
char* xdg = tr_env_get_string("XDG_DATA_DIRS", NULL);
- char const* fallback = "/usr/local/share:/usr/share";
+ char const* fallback = "@TERMUX_PREFIX@/share";
char* buf = tr_strdup_printf("%s:%s:%s", pkg != NULL ? pkg : "", xdg != NULL ? xdg : "", fallback);
tr_free(xdg);
tmp = buf;
@@ -649,7 +649,7 @@ char* tr_getSessionIdDir(void)
{
#ifndef _WIN32
- return tr_strdup("/tmp");
+ return tr_strdup("@TERMUX_PREFIX@/tmp");
#else

View File

@ -1,13 +0,0 @@
diff --git a/libtransmission/platform.c b/libtransmission/platform.c
index cf0ecd8..578c044 100644
--- a/libtransmission/platform.c
+++ b/libtransmission/platform.c
@@ -649,7 +649,7 @@ char* tr_getSessionIdDir(void)
{
#ifndef _WIN32
- return tr_strdup("/tmp");
+ return tr_strdup("@TERMUX_PREFIX@/tmp");
#else