diff options
Diffstat (limited to 'games/xcowsay/xcowsay.SlackBuild')
-rw-r--r-- | games/xcowsay/xcowsay.SlackBuild | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/games/xcowsay/xcowsay.SlackBuild b/games/xcowsay/xcowsay.SlackBuild index 0605052be1..1db1890291 100644 --- a/games/xcowsay/xcowsay.SlackBuild +++ b/games/xcowsay/xcowsay.SlackBuild @@ -1,11 +1,20 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for xcowsay -# 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. +# 20220610 bkw: update for v1.6. + +# 20201103 bkw: +# - Update for v1.5.1. The changelog for this version says this: +# Fix black squares around cow and bubble on non-compositing window manager. +# And it works fine in the window managers I've tried it with, so +# it's probably fine to upgrade. Add note to README about how to +# build 1.4, if someone needs it. + # 20200221 bkw: # - BUILD=2 # - Add man pages for xcow(dream|fortune|think) @@ -15,10 +24,13 @@ # so don't try. Maybe 1.6 or later will support non-compositing WMs # at some point. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=xcowsay -VERSION=${VERSION:-1.4} -BUILD=${BUILD:-2} +VERSION=${VERSION:-1.6} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -28,7 +40,11 @@ if [ -z "$ARCH" ]; then esac fi -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} @@ -91,4 +107,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 |