accessibility/pastebinit: Fix script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2015-01-16 23:39:22 +07:00 committed by Willy Sudiarto Raharjo
parent f69e1a663e
commit 1474b73304

View file

@ -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 \