aboutsummaryrefslogtreecommitdiff
path: root/desktop/Surfn/Surfn.SlackBuild
diff options
context:
space:
mode:
authorLeo C <leoc@gmx.com>2021-01-02 00:12:12 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-01-02 10:48:28 +0700
commit24c29047c42b1863c0f9f80e79e37a2b64c72fbf (patch)
treeac98072a60338da83076f4ae14c363f85b972e5f /desktop/Surfn/Surfn.SlackBuild
parent6fa5c0a548f7f5593c34ae6fa8f5c93d4a6cfcf9 (diff)
desktop/Surfn: Updated for version 20.12.7.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/Surfn/Surfn.SlackBuild')
-rw-r--r--desktop/Surfn/Surfn.SlackBuild22
1 files changed, 15 insertions, 7 deletions
diff --git a/desktop/Surfn/Surfn.SlackBuild b/desktop/Surfn/Surfn.SlackBuild
index a4896dc5c74c..141fe6cdcae1 100644
--- a/desktop/Surfn/Surfn.SlackBuild
+++ b/desktop/Surfn/Surfn.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Surfn
-# Copyright 2018-2019 Leonardo Citrolo, Italy
+# Copyright 2018-2020 Leonardo Citrolo, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=Surfn
-VERSION=${VERSION:-9.7.1}
+SRCVER=${SRCVER:-20.12-7}
+VERSION=${VERSION:-$(echo $SRCVER | tr - .)}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -39,20 +40,27 @@ 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
+rm -rf $PRGNAM-$SRCVER
+# It's better not to be verbose, there's an awful lot of files to extract
+echo "Extracting files..."
+tar xf $CWD/$PRGNAM-$SRCVER.tar.gz
+cd $PRGNAM-$SRCVER
chown -R root:root .
mkdir -p $PKG/usr/share/icons
cp -a surfn-icons/$PRGNAM* $PKG/usr/share/icons
find $PKG/usr/share/icons \
- \( -name create-new-icon-theme.cache.sh -o -name icon-theme.cache \) -exec rm -f {} \;
+ \( -name CREDITS \
+ -o -name LICENSE \
+ -o -name create-new-icon-theme.cache.sh \
+ -o -name icon-theme.cache \) -exec rm -f {} \;
+rm -f $PKG/usr/share/icons/Surfn/changelog \
+ $PKG/usr/share/icons/Surfn/LICENSE.txt
find $PKG/usr/share/icons -type d -exec chmod 755 {} \;
find $PKG/usr/share/icons -type f -exec chmod 644 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README.md \
+cp -a surfn-icons/Surfn/{changelog,CREDITS,LICENSE.txt} README.md \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild