wok-4.x annotate firefox/receipt @ rev 921
Up: Firefox (3.0-rc3)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Jun 17 13:08:09 2008 +0200 (2008-06-17) |
parents | 9c22e6598e9f |
children | c78d847b9f77 |
rev | line source |
---|---|
pankso@45 | 1 # SliTaz package receipt. |
pankso@45 | 2 |
pankso@45 | 3 PACKAGE="firefox" |
pankso@921 | 4 VERSION="3.0-rc3" |
pankso@197 | 5 CATEGORY="network" |
pankso@45 | 6 SHORT_DESC="User friendly, secure and fast web browser." |
pankso@45 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@880 | 8 DEPENDS="gtk+ sqlite" |
pankso@880 | 9 BUILD_DEPENDS="xorg-dev gtk+-dev zip libIDL coreutils findutils xorg-libXft-dev" |
pankso@921 | 10 TARBALL="$PACKAGE-3.0rc3-source.tar.bz2" |
pankso@45 | 11 WEB_SITE="http://www.mozilla.org/" |
pankso@921 | 12 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/3.0rc3/source/$TARBALL" |
pankso@45 | 13 |
pankso@45 | 14 # Rules to configure and make the package. |
pankso@45 | 15 # |
pankso@45 | 16 # A long compile time... dont forget to build libidl before and check the |
pankso@45 | 17 # .mozconfig file from the stuff and the stuff/README document. |
pankso@45 | 18 # |
pankso@45 | 19 compile_rules() |
pankso@45 | 20 { |
pankso@45 | 21 # Move the mozilla source tree to $PACKAGE-$VERSION to keep variables |
pankso@45 | 22 # and to have a nice clean. |
pankso@45 | 23 # |
pankso@45 | 24 mv mozilla $PACKAGE-$VERSION |
pankso@45 | 25 cp -a stuff/firefox.mozconfig $src/.mozconfig |
pankso@45 | 26 cd $src |
pankso@45 | 27 ./configure $CONFIGURE_ARGS |
pankso@45 | 28 make |
pankso@45 | 29 make DESTDIR=$PWD/_pkg install |
pankso@45 | 30 } |
pankso@45 | 31 |
pankso@45 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@45 | 33 genpkg_rules() |
pankso@45 | 34 { |
pankso@629 | 35 mkdir -p $fs/usr/lib $fs/usr/share $fs/etc |
pankso@45 | 36 cp -a $_pkg/usr/bin $fs/usr |
pankso@840 | 37 cp -a $_pkg/usr/lib/$PACKAGE-3.0 $fs/usr/lib |
pankso@45 | 38 |
pankso@197 | 39 # SliTaz Web site for the home page, bookmarks file and branding. |
pankso@840 | 40 cp -a stuff/browserconfig.properties $fs/usr/lib/$PACKAGE-3.0 |
pankso@840 | 41 cp -a stuff/bookmarks.html $fs/usr/lib/$PACKAGE-3.0/defaults/profile |
pankso@197 | 42 cp -a stuff/firefox-branding.js \ |
pankso@840 | 43 $fs/usr/lib/$PACKAGE-3.0/defaults/pref/ |
pankso@45 | 44 |
pankso@45 | 45 # User preference. |
pankso@840 | 46 cp -a stuff/prefs.js $fs/usr/lib/$PACKAGE-3.0/defaults/profile |
pankso@45 | 47 cp -a stuff/userChrome.css \ |
pankso@840 | 48 $fs/usr/lib/$PACKAGE-3.0/defaults/profile/chrome |
pankso@45 | 49 |
pankso@45 | 50 # Move default config to /etc/firefox (/usr maybe read-only) |
pankso@840 | 51 mv -f $fs/usr/lib/$PACKAGE-3.0/defaults $fs/etc/$PACKAGE |
pankso@840 | 52 ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-3.0/defaults |
pankso@921 | 53 # EULA is accepted by SliTaz project. |
pankso@921 | 54 sed -i s:'pref("browser.EULA.3.accepted", false);':'pref("browser.EULA.3.accepted", true);': \ |
pankso@921 | 55 $fs/etc/firefox/pref/firefox.js |
pankso@840 | 56 |
pankso@45 | 57 # Locale fr |
pankso@45 | 58 tar xjf stuff/langpack-fr@firefox.mozilla.org.tar.bz2 \ |
pankso@840 | 59 -C $fs/usr/lib/$PACKAGE-3.0/extensions |
pankso@840 | 60 |
pankso@629 | 61 # Search Plugin (by: oddball) |
pankso@840 | 62 cp -a stuff/searchplugins $fs/usr/lib/firefox-3.0/ |
pankso@629 | 63 chown -R root.root $fs |
pankso@840 | 64 |
pankso@45 | 65 # Remove unnecessary files. |
pankso@840 | 66 #rm -f $fs/usr/lib/$PACKAGE-3.0/TestGtkEmbed |
pankso@840 | 67 rm -rf $fs/usr/lib/$PACKAGE-3.0/dictionaries/* |
pankso@840 | 68 rm -rf $fs/usr/lib/$PACKAGE-3.0/icons |
pankso@840 | 69 rm -rf $fs/usr/lib/$PACKAGE-3.0/libsqlite3.so |
pankso@45 | 70 } |
pankso@45 | 71 |
pankso@45 | 72 # Pre - Post install command to set default locale. |
pankso@45 | 73 pre_install() |
pankso@45 | 74 { |
pankso@45 | 75 local root |
pankso@45 | 76 root=$1 |
pankso@45 | 77 # Remove old libs |
pankso@45 | 78 rm -rf $root/usr/lib/firefox-* |
pankso@45 | 79 } |
pankso@45 | 80 post_install() |
pankso@45 | 81 { |
pankso@45 | 82 local root |
pankso@45 | 83 root=$1 |
pankso@45 | 84 if grep -q "fr_*" $root/etc/locale.conf; then |
pankso@629 | 85 sed -i 's/en-US/fr/' \ |
pankso@840 | 86 $root/etc/firefox/pref/firefox-l10n.js |
pankso@45 | 87 fi |
pankso@45 | 88 } |