wok view firefox-official/receipt @ rev 19374

Ip dialog (1.3-20160424)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 12 08:42:46 2016 +0200 (2016-08-12)
parents 1b27cc4b14b9
children 31d782e2fabc
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-official"
4 VERSION="48.0"
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"
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 }