From 138387d7e074984690d53e1e2d4cff56cbef7c4d Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sat, 6 Aug 2016 17:38:14 -0400 Subject: [PATCH] pastebinit: Add package --- packages/pastebinit/build.sh | 16 ++++++++++++++++ packages/pastebinit/pastebinit.patch | 14 ++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 packages/pastebinit/build.sh create mode 100644 packages/pastebinit/pastebinit.patch diff --git a/packages/pastebinit/build.sh b/packages/pastebinit/build.sh new file mode 100644 index 000000000..4d7eb9cb9 --- /dev/null +++ b/packages/pastebinit/build.sh @@ -0,0 +1,16 @@ +TERMUX_PKG_HOMEPAGE=https://launchpad.net/pastebinit +TERMUX_PKG_DESCRIPTION="Command-line pastebin client" +TERMUX_PKG_VERSION=1.5 +TERMUX_PKG_SRCURL=https://launchpad.net/pastebinit/trunk/${TERMUX_PKG_VERSION}/+download/pastebinit-${TERMUX_PKG_VERSION}.tar.bz2 +TERMUX_PKG_DEPENDS="python" +TERMUX_PKG_BUILD_IN_SRC=yes +TERMUX_PKG_PLATFORM_INDEPENDENT=yes + +termux_step_make_install () { + cp pastebinit $TERMUX_PREFIX/bin/ + xsltproc -''-nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl pastebinit.xml + cp pastebinit.1 $TERMUX_PREFIX/share/man/man1/ + + rm -Rf $TERMUX_PREFIX/etc/pastebin.d + mv pastebin.d $TERMUX_PREFIX/etc +} diff --git a/packages/pastebinit/pastebinit.patch b/packages/pastebinit/pastebinit.patch new file mode 100644 index 000000000..772f40ba1 --- /dev/null +++ b/packages/pastebinit/pastebinit.patch @@ -0,0 +1,14 @@ +diff -u -r ../pastebinit-1.5/pastebinit ./pastebinit +--- ../pastebinit-1.5/pastebinit 2016-03-01 00:52:32.000000000 -0500 ++++ ./pastebinit 2016-08-06 16:37:25.632592458 -0400 +@@ -86,8 +86,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(