summaryrefslogtreecommitdiff
path: root/system/multitail/multitail.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/multitail/multitail.SlackBuild')
-rw-r--r--system/multitail/multitail.SlackBuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/system/multitail/multitail.SlackBuild b/system/multitail/multitail.SlackBuild
index aeaa204d03..b55faa95e2 100644
--- a/system/multitail/multitail.SlackBuild
+++ b/system/multitail/multitail.SlackBuild
@@ -3,8 +3,10 @@
# Slackware build script for MultiTail
# Written by Erik Hanson erik@slackbuilds.org
+set -eu
+
PRGNAM=multitail
-VERSION=5.0.5
+VERSION=5.2.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -21,23 +23,23 @@ fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tgz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tgz
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
# Fix our destination
-sed -i "s|DESTDIR=/|DESTDIR=$PKG|" Makefile || exit 1
-sed -i "s|/usr/share|/usr|" Makefile || exit 1
+sed -i "s|DESTDIR=/|DESTDIR=$PKG|" Makefile
+sed -i "s|/usr/share|/usr|" Makefile
# Create a landing pad
mkdir -p $PKG/usr/{bin,doc,man/man1} $PKG/etc $PKG/install
# Compile and Install
-CFLAGS="$SLKCFLAGS" make install || exit 1
-strip --strip-unneeded $PKG/usr/bin/multitail || exit 1
+CFLAGS="$SLKCFLAGS" make install
+strip --strip-unneeded $PKG/usr/bin/multitail
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/slack-desc > $PKG/install/slack-desc