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