diff options
Diffstat (limited to 'accessibility/pastebinit/pastebinit.SlackBuild')
-rw-r--r-- | accessibility/pastebinit/pastebinit.SlackBuild | 41 |
1 files changed, 28 insertions, 13 deletions
diff --git a/accessibility/pastebinit/pastebinit.SlackBuild b/accessibility/pastebinit/pastebinit.SlackBuild index 52fd9aa5f7..0c035482ea 100644 --- a/accessibility/pastebinit/pastebinit.SlackBuild +++ b/accessibility/pastebinit/pastebinit.SlackBuild @@ -1,25 +1,44 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for pastebinit -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20240209 bkw: update for v1.6.2. Not sure if this is from the +# original author or not; it's from launchpad.net, and is the +# version that's in Ubuntu these days. It also has more working +# services (8 of 10). +# - update service status in README, fix grammar. +# - fix grammar in slack-desc. + +# 20191219 bkw: +# - BUILD=2 +# - Make sprunge.us actually be the default (broken sed command!) +# - Add note to README about which services still work. + # 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. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=pastebinit -VERSION=${VERSION:-1.5} +VERSION=${VERSION:-1.6.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -30,22 +49,18 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/${PRGNAM}_$VERSION.orig.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ # 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",' \ + -e '/^defaultPB/s,=.*,= "sprunge.us",' \ $PRGNAM mkdir -p \ @@ -87,4 +102,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |