diff options
author | B. Watson <yalhcru@gmail.com> | 2015-01-16 23:39:22 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-01-16 23:39:22 +0700 |
commit | 1474b733041489dcaa236e14ef90ed09db97d110 (patch) | |
tree | 50ea1e2c61de53141d4e69e679f651f494bc8cb7 /accessibility/pastebinit/pastebinit.SlackBuild | |
parent | f69e1a663ef3c0ae1b08a7112f12e5c51c4bb236 (diff) | |
download | slackbuilds-1474b733041489dcaa236e14ef90ed09db97d110.tar.gz |
accessibility/pastebinit: Fix script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'accessibility/pastebinit/pastebinit.SlackBuild')
-rw-r--r-- | accessibility/pastebinit/pastebinit.SlackBuild | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/accessibility/pastebinit/pastebinit.SlackBuild b/accessibility/pastebinit/pastebinit.SlackBuild index 2ad68a0756..11163bf776 100644 --- a/accessibility/pastebinit/pastebinit.SlackBuild +++ b/accessibility/pastebinit/pastebinit.SlackBuild @@ -4,11 +4,17 @@ # Written by B. Watson (yalhcru@gmail.com) -# Licensed under the WTFPL. See http://sam.zoy.org/wtfpl/ for details. +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# 20150116 bkw: +# - Fix shebang line so python3 isn't required. +# - Change default server to sprunge.us, since we now get +# 'invalid_api_key' trying to use the default pastebin.com. +# I guess nobody's using this, or I would have gotten bug reports. PRGNAM=pastebinit VERSION=${VERSION:-1.4.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} ARCH=noarch @@ -36,6 +42,12 @@ find -L . \ # Get rid of the fixmes in the man page. patch -p1 < $CWD/manpagefix.diff +# 20150116 bkw: +sed -i \ + -e '1s,python3$,python,' \ + -e '/^defaultPB/s,"http:.*,"http://sprunge.us",' \ + $PRGNAM + mkdir -p \ $PKG/usr/bin \ $PKG/usr/share/pastebin.d \ |