diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-20 10:27:03 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-20 10:33:56 +0700 |
commit | a6f967420b7f82d4f08288111136cb905f4d57d1 (patch) | |
tree | 98d58d6377b68ac8616df93115f631d1dde91c02 /system/multitail/multitail.SlackBuild | |
parent | 1a59d5f227b6f8de6c2f6a56d34d0c87a422fbd4 (diff) |
system/multitail: Updated for version 7.0.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/multitail/multitail.SlackBuild')
-rw-r--r-- | system/multitail/multitail.SlackBuild | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/system/multitail/multitail.SlackBuild b/system/multitail/multitail.SlackBuild index 1a0fc82c5b08b..1f3ebeeadbb51 100644 --- a/system/multitail/multitail.SlackBuild +++ b/system/multitail/multitail.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for MultiTail # Copyright 2009-2015 Erik W. Hanson, Minneapolis, MN, USA -# Copyright 2015-2016 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2015-2023 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=multitail -VERSION=${VERSION:-6.5.0} +VERSION=${VERSION:-7.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +39,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 @@ -65,7 +62,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tgz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -74,6 +71,9 @@ 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/d7d10f3b.patch +patch -p1 < $CWD/608bad75.patch + # Fix our destination sed -i "s|/usr/share|/usr|" Makefile sed -i "s|share/man/man1|man/man1|" Makefile @@ -85,8 +85,18 @@ sed -i 's|ncursesw/ncurses.h|ncurses.h|' mt.h mkdir -p $PKG/usr/{bin,doc,man/man1} $PKG/etc $PKG/install # Compile and Install -CFLAGS="$SLKCFLAGS" make -install -m 755 multitail $PKG/usr/bin/multitail +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMAN_INSTALL_DIR=/usr/man \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install/strip DESTDIR=$PKG +cd .. + install -m 644 multitail.1 $PKG/usr/man/man1/multitail.1 install -m 655 multitail.conf $PKG/etc/multitail.conf.new @@ -95,6 +105,12 @@ 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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mv $PKG/usr/share/doc/*/* $PKG/usr/doc/$PRGNAM-$VERSION/ +rm -rf $PKG/usr/share/* +rm -f $PKG/usr/etc/multitail.conf.new +mv $PKG/usr/etc/multitail $PKG/usr/share/ +rm -rf $PKG/usr/etc + cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |