aboutsummaryrefslogtreecommitdiff
path: root/desktop/screenfetch
diff options
context:
space:
mode:
authorJefferson Rocha <root@slackjeff.com.br>2020-06-22 20:00:48 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-06-28 08:16:47 +0700
commit99eeed3b5c448a184a96e9ad4bfe6bcfb4f46cba (patch)
tree325a904a792a0cfd368f09bbd90280cd51ac2caf /desktop/screenfetch
parent3e92f5a7e1ea7a74c45449d08a460e33c5295ee5 (diff)
desktop/screenfetch: Updated for version 3.9.1.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/screenfetch')
-rw-r--r--desktop/screenfetch/screenfetch.SlackBuild57
-rw-r--r--desktop/screenfetch/screenfetch.info4
2 files changed, 30 insertions, 31 deletions
diff --git a/desktop/screenfetch/screenfetch.SlackBuild b/desktop/screenfetch/screenfetch.SlackBuild
index 298eda97de97..65e62b6eb567 100644
--- a/desktop/screenfetch/screenfetch.SlackBuild
+++ b/desktop/screenfetch/screenfetch.SlackBuild
@@ -4,6 +4,7 @@
#
# Copyright 2012-2017 Bojan Popovic, Belgrade, Serbia, <bocke@slackware-srbija.org>.
# Copyright 2017-2020 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright Jefferson Rocha, Curitiba, Brazil.
#
# All rights reserved.
#
@@ -43,46 +44,44 @@
# Updated changelog formating. Updated tar extraction line
# to eliminate (harmless but annoying) extraction errors.
# 1.9 27-MAR-2017 Updated for version 3.8.0. Added a manpage.
+# 2.0 20-JUNE-2020 Updated to a new upstream ver. 3.9.1.
+# Added Double quotes in variables.
-PRGNAM=screenfetch
-VERSION=${VERSION:-3.9.1}
-BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo}
-
-ARCH=noarch
-
-CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
-
-DOCS="CHANGELOG COPYING README.mkdn TODO"
-
+PRGNAM="screenfetch"
SRCNAM="screenFetch"
+VERSION="${VERSION:-3.9.1}"
+BUILD="${BUILD:-1}"
+TAG="${TAG:-_SBo}"
+ARCH="noarch"
+DOCS="CHANGELOG COPYING README.mkdn TODO"
+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/$SRCNAM-$VERSION.tar.gz
-mv $SRCNAM-$VERSION $PRGNAM-$VERSION
-cd $PRGNAM-$VERSION
+rm -rf "$PKG"
+mkdir -p "$TMP" "$PKG" "$OUTPUT"
+cd "$TMP"
+rm -rf "$PRGNAM-$VERSION"
+tar xvf "$CWD/$SRCNAM-$VERSION.tar.gz"
+mv "$SRCNAM-$VERSION" "$PRGNAM-$VERSION"
+cd "$PRGNAM-$VERSION"
-install -m 755 -D $PRGNAM-dev $PKG/usr/bin/$PRGNAM
+install -m 755 -D "$PRGNAM-dev" "$PKG/usr/bin/$PRGNAM"
-mkdir -p $PKG/usr/man/man1
-install -m 644 screenfetch.1 $PKG/usr/man/man1
+mkdir -p "$PKG/usr/man/man1"
+install -m 644 screenfetch.1 "$PKG/usr/man/man1"
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
chmod 644 $DOCS; cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cat "$CWD/$PRGNAM.SlackBuild" > "$PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild"
-mkdir -p $PKG/install
-cat $CWD/slack-desc > $PKG/install/slack-desc
+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}
+cd "$PKG"
+/sbin/makepkg -l y -c n "$OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}"
diff --git a/desktop/screenfetch/screenfetch.info b/desktop/screenfetch/screenfetch.info
index 6264624b8062..9b682439bebc 100644
--- a/desktop/screenfetch/screenfetch.info
+++ b/desktop/screenfetch/screenfetch.info
@@ -6,5 +6,5 @@ MD5SUM="4f7855fe7943d9119d7fde678e43d2d9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="orphaned - no maintainer"
-EMAIL="nobody@nowhere"
+MAINTAINER="Jefferson Rocha"
+EMAIL="root@slackjeff.com.br"