diff options
author | Leo C <leoc@gmx.com> | 2020-04-10 00:50:06 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-04-10 00:50:06 +0700 |
commit | 38d284701d09e85ec9892425e7b4b20417cc2fb2 (patch) | |
tree | d2e125b376bb7f6d61c1be9a208bdd07ce1e64b5 /system/psuinfo | |
parent | 1d0a0a85e1142045ed969425c550165ace30fd7d (diff) | |
download | slackbuilds-38d284701d09e85ec9892425e7b4b20417cc2fb2.tar.gz |
system/psuinfo: Added (Custom system usage info).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/psuinfo')
-rw-r--r-- | system/psuinfo/README | 5 | ||||
-rw-r--r-- | system/psuinfo/psuinfo.SlackBuild | 70 | ||||
-rw-r--r-- | system/psuinfo/psuinfo.info | 10 | ||||
-rw-r--r-- | system/psuinfo/slack-desc | 19 |
4 files changed, 104 insertions, 0 deletions
diff --git a/system/psuinfo/README b/system/psuinfo/README new file mode 100644 index 0000000000..ebf249ba33 --- /dev/null +++ b/system/psuinfo/README @@ -0,0 +1,5 @@ +A Python3 psutil-based command to display customizable system usage +info as icons or text. Intended for Tint2 panel executors, may also +be used in other panels or executed in terminal. + +Note: required package psutil must have been built with Python3 support diff --git a/system/psuinfo/psuinfo.SlackBuild b/system/psuinfo/psuinfo.SlackBuild new file mode 100644 index 0000000000..23cb95e2fb --- /dev/null +++ b/system/psuinfo/psuinfo.SlackBuild @@ -0,0 +1,70 @@ +#!/bin/sh + +# Slackware build script for psuinfo + +# Copyright 2020 Leonardo Citrolo, Italy +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=psuinfo +VERSION=${VERSION:-1.1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +ARCH=noarch + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +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 {} \; + +mkdir -p $PKG/usr/bin +cp -a $PRGNAM $PKG/usr/bin + +mkdir -p $PKG/usr/share/$PRGNAM +cp -a icons/* $PKG/usr/share/$PRGNAM + +mkdir -p $PKG/usr/share/tint2 +cp -a configs/* $PKG/usr/share/tint2 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGELOG.md LICENSE README.md \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/system/psuinfo/psuinfo.info b/system/psuinfo/psuinfo.info new file mode 100644 index 0000000000..54fcce6768 --- /dev/null +++ b/system/psuinfo/psuinfo.info @@ -0,0 +1,10 @@ +PRGNAM="psuinfo" +VERSION="1.1" +HOMEPAGE="https://github.com/nwg-piotr/psuinfo" +DOWNLOAD="https://github.com/nwg-piotr/psuinfo/archive/v1.1/psuinfo-1.1.tar.gz" +MD5SUM="ddbcfab6a6a9111fe3ea9e57186e9833" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="psutil python3" +MAINTAINER="Leo C." +EMAIL="leoc@gmx.com" diff --git a/system/psuinfo/slack-desc b/system/psuinfo/slack-desc new file mode 100644 index 0000000000..503c9b2bd5 --- /dev/null +++ b/system/psuinfo/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +psuinfo: psuinfo (Custom system usage info for Tint2 panel executors or CLI) +psuinfo: +psuinfo: A Python3 psutil-based command to display customizable system usage +psuinfo: info as icons or text. Intended for Tint2 panel executors, may also +psuinfo: be used in other panels or executed in terminal. +psuinfo: +psuinfo: +psuinfo: +psuinfo: +psuinfo: Homepage: https://github.com/nwg-piotr/psuinfo +psuinfo: |