get-scripts view firefox-official @ rev 78

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