# HG changeset patch # User Hans-G?nter Theisgen # Date 1584424698 -3600 # Node ID 57a7405e48e5d179d1215b00544f83153aabdc08 # Parent 9b4df34618c879718e9fbe21322a84362a021def get-LibreOffice: other URL for old versions diff -r 9b4df34618c8 -r 57a7405e48e5 get-LibreOffice/stuff/get-LibreOffice --- a/get-LibreOffice/stuff/get-LibreOffice Sun Mar 15 17:43:47 2020 +0100 +++ b/get-LibreOffice/stuff/get-LibreOffice Tue Mar 17 06:58:18 2020 +0100 @@ -6,6 +6,7 @@ # Author : Ben Arnold # via : get-OpenOffice3 (Eric Joseph-Alexandre ) # modified by Hans-Günter Theisgen on 2019-04-07 +# modified by Hans-Günter Theisgen on 220-03-17 # # === Initialisations === @@ -21,13 +22,13 @@ SUFFIX="Linux_x86_rpm.tar.gz" PREFIX="http://download.documentfoundation.org/libreoffice/$DIR" -DEPENDS="java6-jre cups" +DEPENDS="cups" EXCLUDE="kde|gnome|test" # Declare functions check_root, status, ... . /lib/libtaz.sh # and make commandline options (if any) available as variables - + is_installed() { if [ -d $root$PKGS_DB/installed/$PACKAGE ] @@ -88,6 +89,7 @@ keep tazpkg : $keep source directory: $SOURCE_DIR build directory : $TEMP_DIR + logging file: $LOG EOT @@ -123,10 +125,13 @@ exit 1 fi else + DIR="old" + PREFIX="http://downloadarchive.documentfoundation.org/libreoffice/$DIR" VERSIONS="$version" fi -for VERSION in $VERSIONS; do # foreach VERSION +for VERSION in $VERSIONS + do # foreach VERSION VER="${VERSION/\-/}" # without hyphens TARBALL="LibreOffice_${VER}_${SUFFIX}" @@ -174,7 +179,7 @@ break -done # foreach VERSIONS +done # foreach VERSION if [ ! -f $SOURCE_DIR/$TARBALL ] then @@ -322,7 +327,9 @@ # === Cleanup === # Preserve package file, if requested -[ "$keep" == "yes" ] && mv $PACKAGE-$VERSION.tazpkg $CUR_DIR +[ "$keep" == "yes" ] && +( mv $PACKAGE-$VERSION.tazpkg $CUR_DIR && + echo Saved $PACKAGE-$VERSION.tazpkg to $CUR_DIR ) # Remove temporary build directory cd $CUR_DIR