wok-next view firefox-official/receipt @ rev 18991

Up firefox-official(45.0.1)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 18 10:58:08 2016 +0200 (2016-03-18)
parents 88c4b92b0e61
children 1b9f2450a5aa
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 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 cp -a $install/* $fs
56 }