mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
accessibility/pastebinit: Fix script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
f69e1a663e
commit
1474b73304
1 changed files with 14 additions and 2 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue