get-scripts diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/firefox-official Fri May 29 10:03:43 2015 +0200 1.3 @@ -0,0 +1,33 @@ 1.4 +SHORT_DESC="Official Firefox build by the Mozilla foundation." 1.5 +WEB_SITE="http://www.mozilla.org/firefox" 1.6 +CATEGORY="network" 1.7 +LICENSE="MPL2" 1.8 +# end of get.list data 1.9 +URL="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/?C=M;O=D" 1.10 +VERSION=$(wget -O - $URL | sed \ 1.11 + '/href="[0-9\./]*"/!d;s|.*href="[^"]*">\([^</]*\).*|\1|;q') 1.12 +[ "$1" == "--get-version" ] && echo $VERSION && exit 1.13 +SOURCE="firefox" 1.14 +TARBALL="$SOURCE-$VERSION.tar.bz2" 1.15 +WGET_URL="${URL%\?*}$VERSION/linux-i686/en-US/$TARBALL" 1.16 +TAGS="web-browser" 1.17 +HOST_ARCH="i486" 1.18 +DEPENDS="gtk+" 1.19 + 1.20 +wget $WGET_URL 1.21 +[ -f $TARBALL ] || 1.22 +abort_package "Could not download $TARBALL from $WGET_URL. Exiting." 1.23 + 1.24 +DESTDIR=$PACKAGE-$VERSION/fs 1.25 + 1.26 +mkdir -p \ 1.27 + ${DESTDIR}/usr/bin \ 1.28 + ${DESTDIR}/usr/lib/firefox-${VERSION} \ 1.29 + ${DESTDIR}/usr/share/pixmaps 1.30 +tar xjf $TARBALL -C ${DESTDIR}/usr/lib/firefox-${VERSION} 1.31 +# /usr/bin/firefox-official + pixmap 1.32 +ln -s ../lib/firefox-${VERSION}/firefox ${DESTDIR}/usr/bin/${PACKAGE} 1.33 +ln -s ../../lib/firefox-${VERSION}/browser/icons/mozicon128.png \ 1.34 + ${DESTDIR}/usr/share/pixmaps/${PACKAGE}.png 1.35 +# Remove updater files (users can't upgrade anyway) 1.36 +rm -f ${DESTDIR}/usr/lib/firefox-${VERSION}/update*