diff --git a/packages/pastebinit/build.sh b/packages/pastebinit/build.sh index a240427ef..349510af5 100644 --- a/packages/pastebinit/build.sh +++ b/packages/pastebinit/build.sh @@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://launchpad.net/pastebinit TERMUX_PKG_DESCRIPTION="Command-line pastebin client" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_VERSION=1.5.1 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://github.com/felixonmars/pastebinit/archive/$TERMUX_PKG_VERSION.tar.gz TERMUX_PKG_SHA256=30850b9dc6b3e9105321cee159d491891b3d3c03180440edffa296c7e1ac0c41 TERMUX_PKG_DEPENDS="python" diff --git a/packages/pastebinit/fix-paths.patch b/packages/pastebinit/fix-paths.patch new file mode 100644 index 000000000..e74d4a64c --- /dev/null +++ b/packages/pastebinit/fix-paths.patch @@ -0,0 +1,14 @@ +diff -uNr pastebinit-1.5.1/pastebinit pastebinit-1.5.1.mod/pastebinit +--- pastebinit-1.5.1/pastebinit 2019-08-03 08:35:53.000000000 +0300 ++++ pastebinit-1.5.1.mod/pastebinit 2020-03-09 13:41:52.506708998 +0200 +@@ -81,8 +81,8 @@ + # - user's overrides in ~/.pastebin.d + # Files found later override files found earlier. + pastebind = {} +- for confdir in ['/usr/share/pastebin.d', '/etc/pastebin.d', +- '/usr/local/etc/pastebin.d', ++ for confdir in ['@TERMUX_PREFIX@/share/pastebin.d', '@TERMUX_PREFIX@/etc/pastebin.d', ++ '@TERMUX_PREFIX@/local/etc/pastebin.d', + os.path.expanduser('~/.pastebin.d'), + os.path.join( + os.path.dirname(