wok-next view firefox/receipt @ rev 173
Typo in glibmm-dev
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Feb 01 00:22:55 2008 +0100 (2008-02-01) |
parents | 2411c75ae7da |
children | 03c68ab3133c |
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"
13 JWM_MENU='Internet:<Program icon="mozicon.png" label="Mozilla Firefox">firefox</Program>'
15 # Rules to configure and make the package.
16 #
17 # A long compile time... dont forget to build libidl before and check the
18 # .mozconfig file from the stuff and the stuff/README document.
19 #
20 compile_rules()
21 {
22 # Move the mozilla source tree to $PACKAGE-$VERSION to keep variables
23 # and to have a nice clean.
24 #
25 mv mozilla $PACKAGE-$VERSION
26 cp -a stuff/firefox.mozconfig $src/.mozconfig
27 cd $src
28 ./configure $CONFIGURE_ARGS
29 make
30 make DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps $fs/etc
37 cp -a $_pkg/usr/bin $fs/usr
38 cp -a $_pkg/usr/lib/$PACKAGE-$VERSION $fs/usr/lib
40 # SliTaz Web site for the home page and bookmarks file.
41 cp -a stuff/browserconfig.properties $fs/usr/lib/$PACKAGE-$VERSION
42 cp -a stuff/bookmarks.html $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile
44 # User preference.
45 cp -a stuff/prefs.js $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile
46 cp -a stuff/userChrome.css \
47 $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile/chrome
49 # Mozilla default pixmaps and Firefox icon from the stuff.
50 cp -a stuff/mozicon.png $fs/usr/share/pixmaps
51 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/icons
53 # Move default config to /etc/firefox (/usr maybe read-only)
54 mv -f $fs/usr/lib/$PACKAGE-$VERSION/defaults $fs/etc/$PACKAGE
55 ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-$VERSION/defaults
57 # Strip
58 strip -s $fs/usr/lib/$PACKAGE-$VERSION/* 2>/dev/null
60 # Locale fr
61 tar xjf stuff/langpack-fr@firefox.mozilla.org.tar.bz2 \
62 -C $fs/usr/lib/$PACKAGE-$VERSION/extensions
64 # Remove unnecessary files.
65 rm -f $fs/usr/lib/$PACKAGE-$VERSION/TestGtkEmbed
66 }
68 # Pre - Post install command to set default locale.
69 pre_install()
70 {
71 local root
72 root=$1
73 # Remove old libs
74 rm -rf $root/usr/lib/firefox-*
75 }
76 post_install()
77 {
78 local root
79 root=$1
80 if grep -q "fr_*" $root/etc/locale.conf; then
81 sed -i 's/en-US/fr/' \
82 $root/usr/lib/$PACKAGE-$VERSION/defaults/pref/firefox-l10n.js
83 fi
84 }