Commits

Moises Henriquez committed 8c8642a

libreoffice update to 4.1.3

Comments (0)

Files changed (1)

var/vabs/libreoffice/src/libreoffice.SlackBuild

 # AUTHORS = 
 
 NAME="libreoffice"            #Enter package Name!
-VERSION=${VERSION:-"4.1.2"}      #Enter package Version!
+VERSION=${VERSION:-"4.1.3"}      #Enter package Version!
 VER=$(echo $VERSION|sed 's/-/_/') #this fixes - in version
 VL_PACKAGER=${VL_PACKAGER:-"hata_ph"}   #Enter your Name!
 
 LDFLAG_OPTIONS=${LDFLAG_OPTIONS:-""}
 ADDRB=${ADDRB:-""} #Add deps that need to be added to the slack-required file here
 EXRB=${EXRB:-""} #Add deps that need to be excluded from the slack-required file here
+LINK64="http://ftp.osuosl.org/pub/tdf/${NAME}/stable/${VERSION}/rpm/x86_64/LibreOffice_${VERSION}_Linux_x86-64_rpm.tar.gz"
+LINK32=$(echo $LINK64 | sed 's|x86_64|x86|g' | sed 's|x86-64|x86|g')
+LINK=${LINK:-"$LINK32 $LINK64"}
 MAKEDEPENDS=${MAKEDEPENDS:-"cpio rpm cups dbus-glib ORBit2 GConf glu qt3"} #Add make deps for packaging
 #----------------------------------------------------------------------------
 
-
 # These variables seem to change with (almost) every release...
 SRCVERSION=$VERSION
 SRCSHORT=$(echo $VERSION | cut -f1-2 -d.) # "3.4"
    exit 1
 fi
 
-# SEPARATE LINKS FOR EACH ARCHITECTURE
-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}"
-
 if [ "$NORUN" != 1 ]; then
 #CFLAGS SETUP
 #--------------------------------------------