diff options
author | Arn0 <yth@ythogtha.org> | 2022-04-15 15:22:18 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-16 12:12:52 +0700 |
commit | 5c7d7a95237102217139929523a19f325593f565 (patch) | |
tree | dd0a467b7b5678712f2de6d377256d4bf9015f6f | |
parent | 835f15310e27025a1a91dfefe0d04f5a67bfa5f9 (diff) | |
download | slackbuilds-5c7d7a95237102217139929523a19f325593f565.tar.gz |
system/smem: updated for version 1.5, python3, new maintainer
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | system/smem/README | 5 | ||||
-rw-r--r-- | system/smem/smem.SlackBuild | 12 | ||||
-rw-r--r-- | system/smem/smem.info | 10 |
3 files changed, 17 insertions, 10 deletions
diff --git a/system/smem/README b/system/smem/README index 5058db778f..fd3bebd203 100644 --- a/system/smem/README +++ b/system/smem/README @@ -3,4 +3,7 @@ systems. Unlike existing tools, smem can report proportional set size (PSS), which is a more meaningful representation of the amount of memory used by libraries and applications in a virtual memory system. -Optional dependency: matplotlib (for chart generation) +Optional dependency: python3-matplotlib (for chart generation) + +Note: the executable and man page are renamed smem-py to avoid conflict +with stock slackware's cfitsio package. diff --git a/system/smem/smem.SlackBuild b/system/smem/smem.SlackBuild index 7d3842858f..ca8a23bd35 100644 --- a/system/smem/smem.SlackBuild +++ b/system/smem/smem.SlackBuild @@ -2,6 +2,7 @@ # Slackware build script for smem +# Copyright 2022 Yth | Pont-en-Royans, France | yth@ythogtha.org # Copyright 2009 Dušan Stefanović <stefanovic.dusan@gmail.com> # Copyright 2013-2017 Audrius Kažukauskas <audrius@neutrino.lt> # All rights reserved. @@ -26,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=smem -VERSION=${VERSION:-1.4} +VERSION=${VERSION:-1.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -51,7 +52,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || tar xvf $CWD/$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -60,9 +61,12 @@ 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 {} \; -install -m 0755 -D smem $PKG/usr/bin/smem +# Using python3 +sed -i 's#usr/bin/env python#usr/bin/env python3#' smem +# Renamed to smem-py because /usr/bin/smem is part of slackware's cfitsio package +install -m 0755 -D smem $PKG/usr/bin/smem-py -install -m 0644 -D smem.8 $PKG/usr/man/man8/smem.8 +install -m 0644 -D smem.8 $PKG/usr/man/man8/smem-py.8 gzip -9 $PKG/usr/man/man8/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/system/smem/smem.info b/system/smem/smem.info index bc1fcb75cd..1e493ec7e7 100644 --- a/system/smem/smem.info +++ b/system/smem/smem.info @@ -1,10 +1,10 @@ PRGNAM="smem" -VERSION="1.4" +VERSION="1.5" HOMEPAGE="https://www.selenic.com/smem/" -DOWNLOAD="https://www.selenic.com/smem/download/smem-1.4.tar.gz" -MD5SUM="fe79435c3930389bfdb560255c802162" +DOWNLOAD="https://selenic.com/repo/smem/archive/1.5.tar.bz2" +MD5SUM="cda151260f38d2e3257df5c04ccecc1d" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Audrius Kažukauskas" -EMAIL="audrius@neutrino.lt" +MAINTAINER="Yth - Arnaud" +EMAIL="yth@ythogtha.org" |