get-scripts view firefox-official @ rev 56
Update wifi firmware scripts (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 23 17:50:46 2016 +0200 (2016-04-23) |
parents | 6dd110506bad |
children | 62d94e6800db |
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=$PWD/$PACKAGE-$VERSION/fs
23 mkdir -p \
24 $DESTDIR/usr/bin \
25 $DESTDIR/usr/lib/firefox-$VERSION \
26 $DESTDIR/usr/share/applications \
27 $DESTDIR/usr/share/pixmaps
28 tar xjf $TARBALL -C $DESTDIR/usr/lib/firefox-$VERSION
29 # /usr/bin/firefox-official + pixmap
30 cd $DESTDIR/usr/bin
31 ln -s $(find ../lib/firefox-$VERSION | sed '/firefox-bin$/!dq') $PACKAGE
32 cd $DESTDIR/usr/share/pixmaps
33 ln -s $(find ../../lib/firefox-$VERSION | sed '/zicon128.png$/!dq') $PACKAGE.png
34 cat > $DESTDIR/usr/share/applications/$PACKAGE.desktop <<EOT
35 [Desktop Entry]
36 Type=Application
37 Name=Firefox Web Browser (official)
38 Name[fr]=Navigateur web Firefox (officiel)
39 Exec=firefox-official
40 Icon=firefox-official
41 Categories=Network;WebBrowser;
42 EOT
43 # Remove updater files (users can't upgrade anyway)
44 rm -f $DESTDIR/usr/lib/firefox-$VERSION/update*