wok rev 22063

corrected package get-uae
author Hans-G?nter Theisgen
date Thu Oct 24 16:54:48 2019 +0100 (2019-10-24)
parents 7cfacc80d067
children c599e279dd2d
files get-uae/receipt get-uae/stuff/get-uae
line diff
     1.1 --- a/get-uae/receipt	Thu Oct 24 16:40:55 2019 +0100
     1.2 +++ b/get-uae/receipt	Thu Oct 24 16:54:48 2019 +0100
     1.3 @@ -4,7 +4,7 @@
     1.4  VERSION="1.00"
     1.5  CATEGORY="system-tools"
     1.6  TAGS="emulator"
     1.7 -SHORT_DESC="Get UAE Amiga emulator."
     1.8 +SHORT_DESC="Get the Umiquious Amiga Emulator."
     1.9  MAINTAINER="maintainer@slitaz.org"
    1.10  LICENSE="GPL2"
    1.11  WEB_SITE="http://www.amigaemulator.org/"
     2.1 --- a/get-uae/stuff/get-uae	Thu Oct 24 16:40:55 2019 +0100
     2.2 +++ b/get-uae/stuff/get-uae	Thu Oct 24 16:54:48 2019 +0100
     2.3 @@ -87,16 +87,18 @@
     2.4  
     2.5  #	=== Fetch archive file, if not existing ===
     2.6  
     2.7 -URL="https://snapshot.debian.org/archive/debian/20100301T043504Z/pool/contrib/u/uae/"
     2.8 +WGET_URL="https://snapshot.debian.org/archive/debian/20100301T043504Z/pool/contrib/u/uae/"
     2.9  if [ "$version" == "latest" ]
    2.10 -	then
    2.11 -	  # wget --output-document=index $URL
    2.12 -	  # output to be scanned for latest version!
    2.13 -	  FILE="uae_0.8.29-7_i386.deb"
    2.14 -	else
    2.15 -	  FILE="uae_${version}_i386.deb"
    2.16 +  then
    2.17 +	# wget --output-document=index $URL
    2.18 +	# output to be scanned for latest version!
    2.19 +	VERSION="0.8.29-7"
    2.20 +  else
    2.21 +	VERSION=$version
    2.22  fi
    2.23 -WGET_URL="https://snapshot.debian.org/archive/debian/20100301T043504Z/pool/contrib/u/uae/$FILE"
    2.24 +
    2.25 +FILE="${PACKAGE}_${VERSION}_i386.deb"
    2.26 +WGET_URL="https://snapshot.debian.org/archive/debian/20100301T043504Z/pool/contrib/u/$PACKAGE/$FILE"
    2.27  
    2.28  CUR_DIR=$(pwd)
    2.29  mkdir -p $TMP_DIR
    2.30 @@ -112,7 +114,7 @@
    2.31  		  then
    2.32  			cd $CUR_DIR
    2.33  			rm -rf $TMP_DIR
    2.34 -			echo "Could not transfer $FILE from $URL. Exiting."
    2.35 +			echo "Could not transfer $FILE from $WGET_URL. Exiting."
    2.36  			exit 1
    2.37  		fi
    2.38  fi