get-scripts annotate firefox-official @ rev 45

Add firefox-official
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 29 10:03:43 2015 +0200 (2015-05-29)
parents
children 098249e83144
rev   line source
pascal@45 1 SHORT_DESC="Official Firefox build by the Mozilla foundation."
pascal@45 2 WEB_SITE="http://www.mozilla.org/firefox"
pascal@45 3 CATEGORY="network"
pascal@45 4 LICENSE="MPL2"
pascal@45 5 # end of get.list data
pascal@45 6 URL="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/?C=M;O=D"
pascal@45 7 VERSION=$(wget -O - $URL | sed \
pascal@45 8 '/href="[0-9\./]*"/!d;s|.*href="[^"]*">\([^</]*\).*|\1|;q')
pascal@45 9 [ "$1" == "--get-version" ] && echo $VERSION && exit
pascal@45 10 SOURCE="firefox"
pascal@45 11 TARBALL="$SOURCE-$VERSION.tar.bz2"
pascal@45 12 WGET_URL="${URL%\?*}$VERSION/linux-i686/en-US/$TARBALL"
pascal@45 13 TAGS="web-browser"
pascal@45 14 HOST_ARCH="i486"
pascal@45 15 DEPENDS="gtk+"
pascal@45 16
pascal@45 17 wget $WGET_URL
pascal@45 18 [ -f $TARBALL ] ||
pascal@45 19 abort_package "Could not download $TARBALL from $WGET_URL. Exiting."
pascal@45 20
pascal@45 21 DESTDIR=$PACKAGE-$VERSION/fs
pascal@45 22
pascal@45 23 mkdir -p \
pascal@45 24 ${DESTDIR}/usr/bin \
pascal@45 25 ${DESTDIR}/usr/lib/firefox-${VERSION} \
pascal@45 26 ${DESTDIR}/usr/share/pixmaps
pascal@45 27 tar xjf $TARBALL -C ${DESTDIR}/usr/lib/firefox-${VERSION}
pascal@45 28 # /usr/bin/firefox-official + pixmap
pascal@45 29 ln -s ../lib/firefox-${VERSION}/firefox ${DESTDIR}/usr/bin/${PACKAGE}
pascal@45 30 ln -s ../../lib/firefox-${VERSION}/browser/icons/mozicon128.png \
pascal@45 31 ${DESTDIR}/usr/share/pixmaps/${PACKAGE}.png
pascal@45 32 # Remove updater files (users can't upgrade anyway)
pascal@45 33 rm -f ${DESTDIR}/usr/lib/firefox-${VERSION}/update*