aboutsummaryrefslogtreecommitdiff
path: root/desktop/Surfn/Surfn.SlackBuild
diff options
context:
space:
mode:
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 a4896dc5c74cf..141fe6cdcae11 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