wok view firefox/receipt @ rev 128
UP : slitaz-boot-scripts (1.3)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Jan 06 19:17:41 2008 +0100 (2008-01-06) |
parents | 6f15c92f2cb1 |
children | 4959e5789caa |
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox"
4 VERSION="2.0.0.11"
5 CATEGORY="extra"
6 SHORT_DESC="User friendly, secure and fast web browser."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gtk+"
9 BUILD_DEPENDS="xorg-dev gtk+-dev zip libIDL coreutils"
10 TARBALL="$PACKAGE-$VERSION-source.tar.bz2"
11 WEB_SITE="http://www.mozilla.org/"
12 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/source/$TARBALL"
14 # Rules to configure and make the package.
15 #
16 # A long compile time... dont forget to build libidl before and check the
17 # .mozconfig file from the stuff and the stuff/README document.
18 #
19 compile_rules()
20 {
21 # Move the mozilla source tree to $PACKAGE-$VERSION to keep variables
22 # and to have a nice clean.
23 #
24 mv mozilla $PACKAGE-$VERSION
25 cp -a stuff/firefox.mozconfig $src/.mozconfig
26 cd $src
27 ./configure $CONFIGURE_ARGS
28 make
29 make DESTDIR=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps $fs/etc
36 cp -a $_pkg/usr/bin $fs/usr
37 cp -a $_pkg/usr/lib/$PACKAGE-$VERSION $fs/usr/lib
39 # SliTaz Web site for the home page and bookmarks file.
40 cp -a stuff/browserconfig.properties $fs/usr/lib/$PACKAGE-$VERSION
41 cp -a stuff/bookmarks.html $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile
43 # User preference.
44 cp -a stuff/prefs.js $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile
45 cp -a stuff/userChrome.css \
46 $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile/chrome
48 # Mozilla default pixmaps and Firefox icon from the stuff.
49 cp -a stuff/mozicon.png $fs/usr/share/pixmaps
50 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/icons
52 # Move default config to /etc/firefox (/usr maybe read-only)
53 mv -f $fs/usr/lib/$PACKAGE-$VERSION/defaults $fs/etc/$PACKAGE
54 ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-$VERSION/defaults
56 # Strip
57 strip -s $fs/usr/lib/$PACKAGE-$VERSION/* 2>/dev/null
59 # Locale fr
60 tar xjf stuff/langpack-fr@firefox.mozilla.org.tar.bz2 \
61 -C $fs/usr/lib/$PACKAGE-$VERSION/extensions
63 # Remove unnecessary files.
64 rm -f $fs/usr/lib/$PACKAGE-$VERSION/TestGtkEmbed
65 }
67 # Pre - Post install command to set default locale.
68 pre_install()
69 {
70 local root
71 root=$1
72 # Remove old libs
73 rm -rf $root/usr/lib/firefox-*
74 }
75 post_install()
76 {
77 local root
78 root=$1
79 if grep -q "fr_*" $root/etc/locale.conf; then
80 sed -i 's/en-US/fr/' \
81 $root/usr/lib/$PACKAGE-$VERSION/defaults/pref/firefox-l10n.js
82 fi
83 }