diff options
Diffstat (limited to 'network/uget/uget.SlackBuild')
-rw-r--r-- | network/uget/uget.SlackBuild | 16 |
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 {} \+ |