wok-current view firefox-official-it/receipt @ rev 19159

/etc/init.d/*: use 'action' in pair with 'status'.
'action' returns translated message, so why not to add full translatable /etc/init.d/* content
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu May 26 20:16:45 2016 +0300 (2016-05-26)
parents 1d298bb09cdd
children 1b27cc4b14b9
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-official-it"
4 lang="it"
5 VERSION="46.0.1"
6 CATEGORY="network"
7 SHORT_DESC="Official Firefox build by the Mozilla foundation (Italian language)"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="MPL2"
10 WEB_SITE="http://www.mozilla.org/firefox"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/$lang/firefox-$VERSION.tar.bz2"
13 TAGS="web-browser"
14 PROVIDE="firefox-official"
15 HOST_ARCH="i486"
16 PROVIDE="browser-html5"
18 DEPENDS="alsa-lib cairo dbus-glib gtk+ gtk+3 xorg-libXt"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 # Installation path
24 fx='/opt/mozilla/firefox'
26 mkdir -p \
27 $install$fx \
28 $install/usr/bin \
29 $install/usr/share/applications \
30 $install/usr/share/icons/hicolor/128x128/apps
32 # Copy everything
33 cp -a $src/* $install$fx
35 # Executable
36 ln -s $fx/firefox $install/usr/bin/firefox-official
38 # Icons
39 ln -s $fx/browser/icons/mozicon128.png \
40 $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png
41 for size in 16 32 48; do
42 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
43 mkdir -p $icon_folder
44 ln -s $fx/browser/chrome/icons/default/default$size.png \
45 $icon_folder/firefox-official.png
46 done
48 # Allow user updates (save user's and our traffic)
49 chmod -R a+w $install$fx
51 # Desktop shortcut
52 cp $stuff/firefox-official.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 }