get-scripts annotate firefox-official @ rev 78
Remove ashism ==
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 26 09:13:38 2019 +0100 (2019-02-26) |
parents | 62d94e6800db |
children |
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@78 | 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@63 | 18 [ -f $TARBALL ] || abort_package |
pascal@45 | 19 |
pascal@63 | 20 USR=$PWD/$PACKAGE-$VERSION/fs/usr |
pascal@45 | 21 |
pascal@63 | 22 mkdir -p $USR/bin $USR/lib/firefox-$VERSION $USR/share/applications $USR/share/pixmaps |
pascal@63 | 23 tar xjf $TARBALL -C $USR/lib/firefox-$VERSION |
pascal@45 | 24 # /usr/bin/firefox-official + pixmap |
pascal@63 | 25 cd $USR/bin |
pascal@49 | 26 ln -s $(find ../lib/firefox-$VERSION | sed '/firefox-bin$/!dq') $PACKAGE |
pascal@63 | 27 cd $USR/share/pixmaps |
pascal@49 | 28 ln -s $(find ../../lib/firefox-$VERSION | sed '/zicon128.png$/!dq') $PACKAGE.png |
pascal@63 | 29 cat > $USR/share/applications/$PACKAGE.desktop <<EOT |
pascal@47 | 30 [Desktop Entry] |
al@48 | 31 Type=Application |
pascal@47 | 32 Name=Firefox Web Browser (official) |
pascal@47 | 33 Name[fr]=Navigateur web Firefox (officiel) |
pascal@47 | 34 Exec=firefox-official |
pascal@47 | 35 Icon=firefox-official |
al@48 | 36 Categories=Network;WebBrowser; |
pascal@47 | 37 EOT |
pascal@45 | 38 # Remove updater files (users can't upgrade anyway) |
pascal@63 | 39 rm -f $USR/lib/firefox-$VERSION/update* |