summaryrefslogtreecommitdiff
path: root/desktop/screenfetch/screenfetch.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/screenfetch/screenfetch.SlackBuild')
-rw-r--r--desktop/screenfetch/screenfetch.SlackBuild31
1 files changed, 21 insertions, 10 deletions
diff --git a/desktop/screenfetch/screenfetch.SlackBuild b/desktop/screenfetch/screenfetch.SlackBuild
index aa63cd1f2e..703c8bae47 100644
--- a/desktop/screenfetch/screenfetch.SlackBuild
+++ b/desktop/screenfetch/screenfetch.SlackBuild
@@ -1,7 +1,10 @@
#!/bin/sh
-
-# Slackware build script for Screenfetch
-# Copyright 2012, 2013, 2014, 2015 Bojan Popovic, Belgrade, Serbia, <bocke@slackware-srbija.org>
+#
+# Slackware build script for Screenfetch.
+#
+# Copyright 2012-2017 Bojan Popovic, Belgrade, Serbia, <bocke@slackware-srbija.org>.
+# Copyright 2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+#
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -39,12 +42,12 @@
# 1.8 31-JAN-2015 Updated changelog. Synced changelog to git history.
# 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.
PRGNAM=screenfetch
-VERSION=${VERSION:-3.6.5}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-3.8.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-DIRNAME=screenFetch
ARCH=noarch
@@ -55,20 +58,28 @@ OUTPUT=${OUTPUT:-/tmp}
DOCS="CHANGELOG COPYING README.mkdn TODO"
+SRCNAM="screenFetch"
+
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-( tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$DIRNAME-$VERSION.tar.gz ) 2>/dev/null || ( echo "Error: Source archive extraction failed!" && exit 1)
-cd $DIRNAME-$VERSION
-chmod 644 $DOCS
+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
+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
-cp -a $DOCS $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
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc