summaryrefslogtreecommitdiff
path: root/system/multitail/multitail.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-17 09:27:29 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-17 09:28:09 +0700
commit6441b70c77144cb15bb3e4aa66fce3b83d43c2a6 (patch)
tree7a8559e746bafda4d7dbf4ff1d672384805fa2ad /system/multitail/multitail.SlackBuild
parent751b406bcb16490734745e32dd0e8d41637b222a (diff)
downloadslackbuilds-6441b70c77144cb15bb3e4aa66fce3b83d43c2a6.tar.gz
system/multitail: Updated for version 6.4.1 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/multitail/multitail.SlackBuild')
-rw-r--r--system/multitail/multitail.SlackBuild15
1 files changed, 12 insertions, 3 deletions
diff --git a/system/multitail/multitail.SlackBuild b/system/multitail/multitail.SlackBuild
index 96bba08a86..5a0a566432 100644
--- a/system/multitail/multitail.SlackBuild
+++ b/system/multitail/multitail.SlackBuild
@@ -2,7 +2,8 @@
# Slackware build script for MultiTail
-# Copyright 2009-2012 Erik W. Hanson, Minneapolis, MN, USA
+# Copyright 2009-2015 Erik W. Hanson, Minneapolis, MN, USA
+# Copyright 2015 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=multitail
-VERSION=${VERSION:-5.2.13}
+VERSION=${VERSION:-6.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,10 +62,14 @@ 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 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Fix our destination
sed -i "s|/usr/share|/usr|" Makefile
+sed -i "s|share/man/man1|man/man1|" Makefile
+sed -i "s|share/doc|doc|" Makefile
+sed -i 's|ncursesw/panel.h|panel.h|' mt.h
+sed -i 's|ncursesw/ncurses.h|ncurses.h|' mt.h
# Create a landing pad
mkdir -p $PKG/usr/{bin,doc,man/man1} $PKG/etc $PKG/install
@@ -74,6 +79,10 @@ CFLAGS="$SLKCFLAGS" make
make install DESTDIR=$PKG
strip --strip-unneeded $PKG/usr/bin/multitail
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh