aboutsummaryrefslogtreecommitdiff
path: root/desktop/neofetch/neofetch.SlackBuild
diff options
context:
space:
mode:
authorMuhammad Herdiansyah <herdiansyah@openmailbox.org>2016-07-31 23:35:58 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-03 07:28:01 +0700
commit72ecb21d099671dd10bc0f1217a9991f59dfbd20 (patch)
tree179f5901862ddef3e31fbac3b9b6b0c531ee1565 /desktop/neofetch/neofetch.SlackBuild
parentc6d206da653daa48aea1efe1d01f99a968a04de6 (diff)
desktop/neofetch: Added (simple system information script).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/neofetch/neofetch.SlackBuild')
-rw-r--r--desktop/neofetch/neofetch.SlackBuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/desktop/neofetch/neofetch.SlackBuild b/desktop/neofetch/neofetch.SlackBuild
new file mode 100644
index 0000000000000..16c419e14bc64
--- /dev/null
+++ b/desktop/neofetch/neofetch.SlackBuild
@@ -0,0 +1,65 @@
+#!/bin/sh
+
+# Slackware build script for neofetch
+# Copyright 2016 Muhammad Herdiansyah, Jakarta
+#
+# 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=neofetch
+VERSION=${VERSION:-1.7}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+ARCH=noarch
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+DOCS="LICENSE.md README.md"
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+cd $PRGNAM-$VERSION
+chmod 644 $DOCS
+
+mkdir -p $PKG/usr/share/neofetch/ascii/distro
+
+install -Dm755 $PRGNAM $PKG/usr/bin/$PRGNAM
+install -Dm644 $PRGNAM.1 $PKG/usr/man/man1/$PRGNAM.1
+install -Dm644 config/config $PKG/usr/share/$PRGNAM/config
+install -Dm644 ascii/distro/* $PKG/usr/share/$PRGNAM/ascii/distro/
+
+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
+
+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}