wok-6.x rev 2204

get-OpenOffice3: add it_IT and ru_RU support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 10 10:31:53 2009 +0000 (2009-02-10)
parents a373634791a5
children 2a2e3384a8ce
files get-OpenOffice3/stuff/get-OpenOffice3
line diff
     1.1 --- a/get-OpenOffice3/stuff/get-OpenOffice3	Tue Feb 10 09:46:38 2009 +0000
     1.2 +++ b/get-OpenOffice3/stuff/get-OpenOffice3	Tue Feb 10 10:31:53 2009 +0000
     1.3 @@ -6,37 +6,27 @@
     1.4  # Author : Eric Joseph-Alexandre <erjo@slitaz.org>
     1.5  
     1.6  PACKAGE="OpenOffice3"
     1.7 -VERSION="3.0.0"
     1.8  URL="http://www.openoffice.org"
     1.9  ROOT="$1"
    1.10  
    1.11  case "$LANG" in
    1.12 -fr_FR)
    1.13 -	WGET_URL="ftp://ftp.proxad.net/mirrors/ftp.openoffice.org/localized/fr"
    1.14 -	VERSION_URL="http://openofficeorg.secsup.org/localized/fr/"
    1.15 -	SUFFIX="LinuxIntel_install_fr.tar.gz";;
    1.16 -de_DE)
    1.17 -	WGET_URL="ftp://ftp.proxad.net/mirrors/ftp.openoffice.org/localized/de"
    1.18 -	VERSION_URL="http://openofficeorg.secsup.org/localized/de/"
    1.19 -	SUFFIX="LinuxIntel_install_de.tar.gz";;
    1.20 -es_ES)
    1.21 -	WGET_URL="ftp://ftp.proxad.net/mirrors/ftp.openoffice.org/localized/es"
    1.22 -	VERSION_URL="http://openofficeorg.secsup.org/localized/es/"
    1.23 -	SUFFIX="LinuxIntel_install_es.tar.gz";;
    1.24 +fr_FR|de_DE|es_ES|it_IT|ru_RU)
    1.25 +	LOC=${LOC%_*}
    1.26 +	DIR="localized/$LOC"
    1.27 +	SUFFIX="LinuxIntel_install_$LOC.tar.gz";;
    1.28  *)
    1.29 -	WGET_URL="ftp://ftp.proxad.net/mirrors/ftp.openoffice.org/stable"
    1.30 -	VERSION_URL="http://openofficeorg.secsup.org/stable/"
    1.31 +	DIR="stable"
    1.32  	SUFFIX="LinuxIntel_install_en-US.tar.gz";;
    1.33  esac
    1.34  
    1.35 -VERSION="$(basename $(wget -O - $VERSION_URL 2> /dev/null | grep href | \
    1.36 -	    tail -1 | sed 's/.*href=\"\(.*\)\".*/\1/'))"
    1.37 +VERSION="$(basename $(wget -O - http://openofficeorg.secsup.org/$DIR/ \
    1.38 +	2> /dev/null | grep href | tail -1 | sed 's/.*href=\"\(.*\)\".*/\1/'))"
    1.39  if [ -z "$VERSION" ]; then
    1.40  	echo "Can't find VERSION. Abort."
    1.41  	exit 0
    1.42  fi
    1.43  TARBALL="OOo_${VERSION}_${SUFFIX}"
    1.44 -WGET_URL=$WGET_URL/$VERSION/$TARBALL
    1.45 +WGET_URL=ftp://ftp.proxad.net/mirrors/ftp.openoffice.org/$DIR/$VERSION/$TARBALL
    1.46  
    1.47  TEMP_DIR="/home/slitaz/build/$PACKAGE.$$"
    1.48  SOURCE_DIR="/home/slitaz/src"