aboutsummaryrefslogtreecommitdiff
path: root/network/uget/uget.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-02-23 13:52:14 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-29 07:45:14 +0700
commitcfe156c6b71f993ccaff7ae167f3fdbe4f8df055 (patch)
treed5864f37e906c180114c2823f61378f01e69ca25 /network/uget/uget.SlackBuild
parentfce362918cfcc3bfac242f4e465e6eab7204b1bf (diff)
network/uget: Updated for version 2.2.3_1.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'network/uget/uget.SlackBuild')
-rw-r--r--network/uget/uget.SlackBuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/network/uget/uget.SlackBuild b/network/uget/uget.SlackBuild
index b5d46070bf..5efd0c72e8 100644
--- a/network/uget/uget.SlackBuild
+++ b/network/uget/uget.SlackBuild
@@ -6,6 +6,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20200223 bkw: update for 2.2.3_1
# 20191130 bkw: update for 2.2.2
# 20180612 bkw: update for 2.2.1
@@ -35,10 +36,17 @@
# - don't install empty AUTHORS and ChangeLog
PRGNAM=uget
-VERSION=${VERSION:-2.2.2}
+VERSION=${VERSION:-2.2.3_1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# Tarball filename version number doesn't match top-level dir inside
+# tarball, and neither matches VERSION 'cause we can't use hyphens.
+# This stuff can safely be left in place: if VERSION contains no _
+# character, TARVER == DIRVER == VERSION.
+TARVER=${VERSION/_/-}
+DIRVER="$( echo $VERSION | cut -d_ -f1 )"
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -71,9 +79,9 @@ 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-$DIRVER
+tar xvf $CWD/$PRGNAM-$TARVER.tar.gz
+cd $PRGNAM-$DIRVER
chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+