aboutsummaryrefslogtreecommitdiff
path: root/system/slackroll/slackroll.SlackBuild
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-02-13 09:03:20 +1300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-02-14 06:28:06 +0700
commit92deb917f13ab3b5988a5b227cd05832c5cea659 (patch)
treecb5a8f34980fb5fed71fdffb311f96eb6475fcd7 /system/slackroll/slackroll.SlackBuild
parent6e24604f691ba4acbc60a886b5019613872f6b90 (diff)
system/slackroll: Updated for version git0c6ab0b.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/slackroll/slackroll.SlackBuild')
-rw-r--r--system/slackroll/slackroll.SlackBuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/system/slackroll/slackroll.SlackBuild b/system/slackroll/slackroll.SlackBuild
index 4088c4a1d6493..b67bb236617ef 100644
--- a/system/slackroll/slackroll.SlackBuild
+++ b/system/slackroll/slackroll.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for slackroll
-# Copyright 2011-2018 Andrew Clemons, Wellington New Zealand
+# Copyright 2011-2018,2020-2021 Andrew Clemons, Wellington New Zealand
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +23,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=slackroll
-VERSION=${VERSION:-v48}
-SRCVER=${VERSION#v}
+GITREV="${GITREV:-0c6ab0b24b9ec48fb1f1058b92720a6ff794d8ac}"
+VERSION=${VERSION:-git$(echo "$GITREV" | sed 's/^\(.\{7\}\).*$/\1/')}
+SRCVER=${SRCVER:-v48}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,9 +41,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$SRCVER
-tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
-cd $PRGNAM-$SRCVER
+rm -rf $PRGNAM-$GITREV
+tar xvf $CWD/$PRGNAM-$GITREV.tar.gz
+cd $PRGNAM-$GITREV
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -67,6 +68,8 @@ cp -a \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mv $PKG/usr/doc/$PRGNAM-$VERSION $PKG/usr/doc/$PRGNAM-$SRCVER
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc