summaryrefslogtreecommitdiffstats
path: root/games/xcowsay/xcowsay.SlackBuild
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2020-02-21 16:37:55 -0500
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-24 06:10:06 +0700
commitd1b6cd5fe4b48d19a15978f6118b87fb4328034d (patch)
treee594226f7f3c50db3e15e8e2ff2022b0180a3dcf /games/xcowsay/xcowsay.SlackBuild
parent4050351b8ed119ec3279d1bb1708e5f942839da6 (diff)
downloadslackbuilds-d1b6cd5fe4b48d19a15978f6118b87fb4328034d.tar.gz
slackbuilds-d1b6cd5fe4b48d19a15978f6118b87fb4328034d.tar.xz
games/xcowsay: Add man pages, usr/bin => usr/games.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to '')
-rw-r--r--games/xcowsay/xcowsay.SlackBuild37
1 files changed, 21 insertions, 16 deletions
diff --git a/games/xcowsay/xcowsay.SlackBuild b/games/xcowsay/xcowsay.SlackBuild
index be198ce626..0605052be1 100644
--- a/games/xcowsay/xcowsay.SlackBuild
+++ b/games/xcowsay/xcowsay.SlackBuild
@@ -6,9 +6,18 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20200221 bkw:
+# - BUILD=2
+# - Add man pages for xcow(dream|fortune|think)
+# - Move executables to /usr/games
+# - Was going to update to v1.5. See README_1.5.txt for why I didn't.
+# You're not going to convince me to upgrade to a version I can't use,
+# so don't try. Maybe 1.6 or later will support non-compositing WMs
+# at some point.
+
PRGNAM=xcowsay
VERSION=${VERSION:-1.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -47,16 +56,14 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.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 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 {} \+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--enable-dbus \
+ --bindir=/usr/games \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
@@ -66,20 +73,18 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
+make install-strip DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# Man pages for wrapper scripts borrowed from Debian. xcowdream.6 was
+# modified to make more sense.
+for i in $CWD/man/*.6; do
+ cat $i > $PKG/usr/man/man6/$( basename $i )
+done
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+gzip -9 $PKG/usr/man/man6/*.6
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYING ChangeLog NEWS README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install