get-scripts annotate firefox-official @ rev 49
firefox-official: typos
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jun 07 00:18:49 2015 +0200 (2015-06-07) |
parents | ec186679eb26 |
children | 46953571ee2a |
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@47 | 21 DESTDIR=$PWD/$PACKAGE-$VERSION/fs |
pascal@45 | 22 |
pascal@45 | 23 mkdir -p \ |
pascal@47 | 24 $DESTDIR/usr/bin \ |
pascal@47 | 25 $DESTDIR/usr/lib/firefox-$VERSION \ |
pascal@47 | 26 $DESTDIR/usr/share/applications \ |
pascal@47 | 27 $DESTDIR/usr/share/pixmaps |
pascal@47 | 28 tar xjf $TARBALL -C $DESTDIR/usr/lib/firefox-$VERSION |
pascal@45 | 29 # /usr/bin/firefox-official + pixmap |
pascal@47 | 30 cd $DESTDIR/usr/bin |
pascal@49 | 31 ln -s $(find ../lib/firefox-$VERSION | sed '/firefox-bin$/!dq') $PACKAGE |
pascal@47 | 32 cd $DESTDIR/usr/share/pixmaps |
pascal@49 | 33 ln -s $(find ../../lib/firefox-$VERSION | sed '/zicon128.png$/!dq') $PACKAGE.png |
pascal@47 | 34 cat > $DESTDIR/usr/share/applications/$PACKAGE <<EOT |
pascal@47 | 35 [Desktop Entry] |
al@48 | 36 Type=Application |
pascal@47 | 37 Name=Firefox Web Browser (official) |
pascal@47 | 38 Name[fr]=Navigateur web Firefox (officiel) |
pascal@47 | 39 Exec=firefox-official |
pascal@47 | 40 Icon=firefox-official |
al@48 | 41 Categories=Network;WebBrowser; |
pascal@47 | 42 EOT |
pascal@45 | 43 # Remove updater files (users can't upgrade anyway) |
pascal@47 | 44 rm -f $DESTDIR/usr/lib/firefox-$VERSION/update* |