wok-current view firefox-official/receipt @ rev 19002
Add: Private and Safe mode desktop shortcut.
author | Leonardo Laporte <hackdorte@sapo.pt> |
---|---|
date | Thu Mar 24 02:43:37 2016 -0300 (2016-03-24) |
parents | bec033058a17 |
children | 43ddd13ff6cf |
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-official"
4 VERSION="45.0.1"
5 CATEGORY="network"
6 SHORT_DESC="Official Firefox build by the Mozilla foundation (English language)"
7 MAINTAINER="pankso@slitaz.org"
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"
15 DEPENDS="gtk+"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # Installation path
21 fx='/opt/mozilla/firefox'
23 mkdir -p \
24 $install$fx \
25 $install/usr/bin \
26 $install/usr/share/applications \
27 $install/usr/share/icons/hicolor/128x128/apps
29 # Copy everything
30 cp -a $src/* $install$fx
32 # Executable
33 ln -s $fx/firefox $install/usr/bin/firefox-official
35 # Icons
36 ln -s $fx/browser/icons/mozicon128.png \
37 $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png
38 for size in 16 32 48; do
39 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
40 mkdir -p $icon_folder
41 ln -s $fx/browser/chrome/icons/default/default$size.png \
42 $icon_folder/firefox-official.png
43 done
45 # Allow user updates (save user's and our traffic)
46 chmod -R a+w $install$fx
48 # Desktop shortcut
49 cp $stuff/firefox-official.desktop $install/usr/share/applications
50 cp $stuff/firefox-official-private.desktop $install/usr/share/applications
51 cp $stuff/firefox-official-safe.desktop $install/usr/share/applications
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 cp -a $install/* $fs
58 }