pastebinit: Add package
authorFredrik Fornwall <fredrik@fornwall.net>
Sat, 6 Aug 2016 21:38:14 +0000 (17:38 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Sat, 6 Aug 2016 21:38:14 +0000 (17:38 -0400)
packages/pastebinit/build.sh [new file with mode: 0644]
packages/pastebinit/pastebinit.patch [new file with mode: 0644]

diff --git a/packages/pastebinit/build.sh b/packages/pastebinit/build.sh
new file mode 100644 (file)
index 0000000..4d7eb9c
--- /dev/null
@@ -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 (file)
index 0000000..772f40b
--- /dev/null
@@ -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(