diff options
Diffstat (limited to 'accessibility/wgetpaste/wgetpaste.SlackBuild')
-rw-r--r-- | accessibility/wgetpaste/wgetpaste.SlackBuild | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/accessibility/wgetpaste/wgetpaste.SlackBuild b/accessibility/wgetpaste/wgetpaste.SlackBuild index 43b6e9ff19..3a8ce39282 100644 --- a/accessibility/wgetpaste/wgetpaste.SlackBuild +++ b/accessibility/wgetpaste/wgetpaste.SlackBuild @@ -2,10 +2,17 @@ # Slackware build script for wgetpaste -# 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. +# 20240314 bkw: update for v2.34. +# 20231220 bkw: update for v2.33. at least half of the services +# are working again, so update README and man page. + +# 20230704 bkw: BUILD=2 +# - Add doc dir. WTF was I smoking? + # 20201024 bkw: Attempted update for v2.30, but it appears to be # broken. The default dpaste service works fine in 2.29 and not # at all in 2.30. Only reason I'm "updating" the build is to add @@ -40,7 +47,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=wgetpaste -VERSION=${VERSION:-2.29} +VERSION=${VERSION:-2.34} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -49,9 +56,6 @@ ARCH=noarch ZSHDIR=/usr/share/zsh/site-functions -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -67,7 +71,7 @@ rm -rf $PKG mkdir -p $TMP $OUTPUT $PKG/usr/bin $PKG/etc/$PRGNAM.d $PKG/usr/man/man1 $PKG/$ZSHDIR cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ @@ -80,6 +84,7 @@ sed -i \ -e 's,emerge --info,wgetpaste_info,g' \ -e 's,emerge x11-misc/,install ,g' \ -e 's,x11-misc/,,g' \ + -e 's,app-text/,,g' \ -e '/^INFO_ARGS/s,"[^"]*","",' \ $PRGNAM @@ -87,7 +92,7 @@ $PRGNAM ## -e '/^DEFAULT_SERVICE/s,bpaste,dpaste,' \ ## Set default paste service to something that works, ## since bpaste has stopped working. -# no longer needed as the default is now poundpython, per upstream. +# no longer needed as bpaste has started working again. # No 'make install', do it manually: install -groot -oroot -m0755 $PRGNAM $PKG/usr/bin @@ -98,6 +103,11 @@ install -groot -oroot -m0755 $CWD/${PRGNAM}_info $PKG/usr/bin # Man page made from --help output, by way of POD. gzip -9c $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a LICENSE $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |