aboutsummaryrefslogtreecommitdiff
path: root/desktop/screenfetch/screenfetch.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/screenfetch/screenfetch.SlackBuild')
-rw-r--r--desktop/screenfetch/screenfetch.SlackBuild57
1 files changed, 28 insertions, 29 deletions
diff --git a/desktop/screenfetch/screenfetch.SlackBuild b/desktop/screenfetch/screenfetch.SlackBuild
index 298eda97de97f..65e62b6eb567a 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}"