#/bin/sh # # SlackBuild by George Vlahavas (vlahavas~at~gmail~dot~com) # modified by Dimitris Tzemos (djemos~at~slackel~dot~gr) # # This builds all available language packs for mozilla firefox # Get the language packs (xpi files) from # http://mozilla.osuosl.org/pub/mozilla.org/firefox/releases/$VERSION/linux-i686/xpi/ # and put them all in a directory named firefox-xpi-$VERSION and create # a tarball out of it. # Don't mind the linux-i686 in the URL, the localization packages work # for x86_64 platforms as well, as long as you use the correct # installation directories. VERSION=45.0.1esr PVERSION=45esr #MAJORVER=`echo $VERSION | sed "s/\(.*\)\(.*\)/\1/"` #MAJORVER=`echo $VERSION | sed "s/\(.*\)\(.*\)esr/\1/"` ARCH=${ARCH:-x86_64} startdir=`pwd` rm -rf $startdir/firefox-xpi-$PVERSION mkdir firefox-xpi-$PVERSION cd firefox-xpi-$PVERSION for i in `cat $startdir/firefox-langs | sed 's/#//'|sed 's/\([a-zA-Z-]*\).*/\1/'`; do file="http://archive.mozilla.org/pub/firefox/releases/$VERSION/linux-$ARCH/xpi/${i}.xpi" if [ -f `wget -O/dev/null -q $file` ]; then wget -N -nd -r -np $file fi clear done cd $startdir tar cvfz firefox-xpi-$PVERSION.tar.gz firefox-xpi-$PVERSION