summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accessibility/pastebinit/pastebinit.SlackBuild16
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 \