system/btop: Updated for version 1.4.0.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2024-10-10 12:55:17 +02:00 committed by Willy Sudiarto Raharjo
parent 5115b15943
commit 6285745eff
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 13 additions and 5 deletions

View file

@ -1,3 +1,5 @@
Resource monitor that shows usage and stats for processor, memory,
disks, network and processes.
C++ version and continuation of bashtop and bpytop.
lowdown is an optional dependency to generate the program's man page.

View file

@ -27,14 +27,14 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=btop
VERSION=${VERSION:-1.3.2}
VERSION=${VERSION:-1.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
i?86) ARCH=i686 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -75,12 +75,18 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
sed -i "s|-O2|$SLKCFLAGS|" Makefile || exit 1
sed -i "s|share/man|man|" Makefile || exit 1
LDFLAGS=-ldl make PREFIX=/usr all
make PREFIX=/usr install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
if [ -d $PKG/usr/man ]; then
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
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README.md CHANGELOG.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,8 +1,8 @@
PRGNAM="btop"
VERSION="1.3.2"
VERSION="1.4.0"
HOMEPAGE="https://github.com/aristocratos/btop/"
DOWNLOAD="https://github.com/aristocratos/btop/archive/v1.3.2/btop-1.3.2.tar.gz"
MD5SUM="04ff8d32e7bf748705fe34dfea50c628"
DOWNLOAD="https://github.com/aristocratos/btop/archive/v1.4.0/btop-1.4.0.tar.gz"
MD5SUM="4867d71bcf6176d7ec1025f4cd86ccb2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""