wok-next view firefox-official/receipt @ rev 19453
Up firefox-official (49.0.2)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Oct 21 10:19:29 2016 +0300 (2016-10-21) |
parents | 2ff4a02980e2 |
children | 3d4f04530b1a |
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-official"
4 VERSION="49.0.2"
5 CATEGORY="network"
6 SHORT_DESC="Official Firefox build by the Mozilla foundation (English language)"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MPL2"
9 WEB_SITE="http://www.mozilla.org/firefox"
10 TARBALL="firefox-$VERSION.tar.bz2"
11 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/en-US/$TARBALL"
12 TAGS="web-browser"
13 HOST_ARCH="i486"
14 PROVIDE="browser-html5"
16 DEPENDS="alsa-lib cairo dbus-glib gtk+ gtk+3 xorg-libXt"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # Installation path
22 fx='/opt/mozilla/firefox'
24 mkdir -p \
25 $install$fx \
26 $install/usr/bin \
27 $install/usr/share/applications \
28 $install/usr/share/icons/hicolor/128x128/apps
30 # Copy everything
31 cp -a $src/* $install$fx
33 # Executable
34 ln -s $fx/firefox $install/usr/bin/firefox-official
36 # Icons
37 ln -s $fx/browser/icons/mozicon128.png \
38 $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png
39 for size in 16 32 48; do
40 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
41 mkdir -p $icon_folder
42 ln -s $fx/browser/chrome/icons/default/default$size.png \
43 $icon_folder/firefox-official.png
44 done
46 # Allow user updates (save user's and our traffic)
47 chmod -R a+w $install$fx
49 # Desktop shortcut
50 cp $stuff/firefox-official.desktop $install/usr/share/applications
51 cp $stuff/firefox-official-private.desktop $install/usr/share/applications
52 cp $stuff/firefox-official-safe.desktop $install/usr/share/applications
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 cp -a $install/* $fs
59 ln -s firefox-official $fs/usr/bin/browser-html5
60 }