wok view firefox-official-fr/receipt @ rev 18597
Up: tazlito (390)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Fri Nov 13 19:37:22 2015 +0100 (2015-11-13) |
parents | |
children | 6e9e0c6034a8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-official-fr"
4 lang="fr"
5 VERSION="42.0"
6 CATEGORY="network"
7 SHORT_DESC="Official Firefox build by the Mozilla foundation (French 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"
17 DEPENDS="gtk+"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 mkdir -p \
23 $install/usr/bin \
24 $install/usr/lib/firefox-$VERSION \
25 $install/usr/share/applications \
26 $install/usr/share/icons/hicolor/128x128/apps
28 cp -a $src/* $install/usr/lib/firefox-$VERSION
30 # /usr/bin/firefox-official
31 ln -s /usr/lib/firefox-$VERSION/firefox $install/usr/bin/firefox-official
33 # Icons
34 ln -s /usr/lib/firefox-$VERSION/browser/icons/mozicon128.png \
35 $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png
36 for size in 16 32 48; do
37 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
38 mkdir -p $icon_folder
39 ln -s /usr/lib/firefox-$VERSION/browser/chrome/icons/default/default$size.png \
40 $icon_folder/firefox-official.png
41 done
43 # Remove updater files (user can't upgrade anyway)
44 rm -f $install/usr/lib/firefox-$VERSION/update*
46 cp $stuff/firefox-official.desktop $install/usr/share/applications
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 cp -a $install/* $fs
53 }