summaryrefslogtreecommitdiffstats
path: root/games/cowsay/cowsay.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/cowsay/cowsay.SlackBuild')
-rw-r--r--games/cowsay/cowsay.SlackBuild30
1 files changed, 21 insertions, 9 deletions
diff --git a/games/cowsay/cowsay.SlackBuild b/games/cowsay/cowsay.SlackBuild
index 581d482f13..3e04332fa9 100644
--- a/games/cowsay/cowsay.SlackBuild
+++ b/games/cowsay/cowsay.SlackBuild
@@ -4,7 +4,7 @@
# Written by David Miller dave@frop.net
# Modified by the slackbuilds.org project.
-# Copyright 2017 Johannes Schoepfer, Germany
+# Copyright 2017-2023 Johannes Schoepfer, Germany
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -27,15 +27,12 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=cowsay
-VERSION=${VERSION:-3.03}
+VERSION=${VERSION:-3.7.0}
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-# 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
@@ -60,10 +57,25 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-patch -p1 < $CWD/cowsay.SlackBuild.patch
+make install prefix=$PKG/usr
+mv $PKG/usr/share/man $PKG/usr
-DESTDIR=$PKG \
-sh ./install.sh /usr
+# add bob cow
+cat << 'EOF' > $PKG/usr/share/cowsay/cows/bob.cow
+##
+## Slackware bob cow, probably by David Miller
+##
+$the_cow = <<"EOC";
+ $thoughts ___
+ $thoughts /_ _\\
+ $thoughts |/ ~ \\|
+ |'-.-`|
+ (|e|e|?
+ `._^_,'
+ \\\\=//
+ U/_/
+EOC
+EOF
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -73,7 +85,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- ChangeLog INSTALL LICENSE MANIFEST README pgp_public_key.txt \
+ ChangeLog LICENSE.txt README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild