Fredrik Fornwall
9 years ago
2 changed files with 30 additions and 0 deletions
@ -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 |
||||
|
} |
@ -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( |
Loading…
Reference in new issue