Commits

Anonymous committed 4eca506

Libreoffice fix SB to work with 4.0.x releases

Comments (0)

Files changed (1)

var/vabs/libreoffice/src/libreoffice.SlackBuild

 # AUTHORS = 
 
 NAME="libreoffice"            #Enter package Name!
-VERSION=${VERSION:-"3.6.5"}      #Enter package Version!
+VERSION=${VERSION:-"4.0.2"}      #Enter package Version!
 VER=$(echo $VERSION|sed 's/-/_/') #this fixes - in version
 VL_PACKAGER=${VL_PACKAGER:-"hata_ph"}   #Enter your Name!
 
 fi
 
 # SEPARATE LINKS FOR EACH ARCHITECTURE
-LINK32=${LINK32:-"http://ftp.osuosl.org/pub/tdf/${NAME}/stable/${VERSION}/rpm/x86/LibO_${VERSION}_Linux_x86_install-rpm_en-US.tar.gz"}
-LINK64=${LINK64:-"http://ftp.osuosl.org/pub/tdf/${NAME}/stable/${VERSION}/rpm/x86_64/LibO_${VERSION}_Linux_x86-64_install-rpm_en-US.tar.gz"}
+LINK32=${LINK32:-"http://ftp.osuosl.org/pub/tdf/${NAME}/stable/${VERSION}/rpm/x86/LibreOffice_${VERSION}_Linux_x86_rpm.tar.gz"}
+LINK64=${LINK64:-"http://ftp.osuosl.org/pub/tdf/${NAME}/stable/${VERSION}/rpm/x86_64/LibreOffice_${VERSION}_Linux_x86-64_rpm.tar.gz"}
 
 LINK="${LINK32} ${LINK64}"
 
 #--------------------------------------------
 
 # We have all the variables, construct the name of the tarball
-TARNAME="LibO_${SRCVERSION}_Linux_${SRCARCH}_install-rpm${TARJRE}_${LOLANG}.tar.gz"
+TARNAME=$(basename $LINK) #"LibO_${SRCVERSION}_Linux_${SRCARCH}_install-rpm${TARJRE}_${LOLANG}.tar.gz"
 if [ ! -r $TARBALL ]; then
   echo "$TARBALL not found"
   exit 1