From 1474b733041489dcaa236e14ef90ed09db97d110 Mon Sep 17 00:00:00 2001 From: B. Watson Date: Fri, 16 Jan 2015 23:39:22 +0700 Subject: accessibility/pastebinit: Fix script. Signed-off-by: Willy Sudiarto Raharjo --- accessibility/pastebinit/pastebinit.SlackBuild | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'accessibility') 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 \ -- cgit v1.2.3