wok-stable annotate firefox/receipt @ rev 4715
Fix: firefox missing alsa-lib DEPENDS
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Jan 04 22:16:07 2010 +0100 (2010-01-04) |
parents | 5445284ac722 |
children | ccd7c48d0adb |
rev | line source |
---|---|
pankso@45 | 1 # SliTaz package receipt. |
pankso@45 | 2 |
pankso@45 | 3 PACKAGE="firefox" |
pankso@4636 | 4 VERSION="3.5.6" |
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@4715 | 8 DEPENDS="gtk+ sqlite dbus dbus-glib glib jpeg xorg-libX11 xorg-libXdamage alsa-lib" |
pankso@4636 | 9 BUILD_DEPENDS="xorg-dev gtk+-dev zip libIDL coreutils findutils xorg-libXft-dev \ |
pankso@4636 | 10 dbus-dev dbus-glib-dev alsa-lib-dev" |
pankso@4079 | 11 TARBALL="$PACKAGE-$VERSION.source.tar.bz2" |
pankso@45 | 12 WEB_SITE="http://www.mozilla.org/" |
pankso@4079 | 13 WGET_URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/source/$TARBALL" |
pascal@1431 | 14 CONFIG_FILES="/etc/firefox" |
pankso@45 | 15 |
pankso@45 | 16 # Rules to configure and make the package. |
pankso@45 | 17 # |
pankso@45 | 18 # A long compile time... dont forget to build libidl before and check the |
pankso@45 | 19 # .mozconfig file from the stuff and the stuff/README document. |
pankso@45 | 20 # |
pankso@45 | 21 compile_rules() |
pankso@45 | 22 { |
pankso@45 | 23 # Move the mozilla source tree to $PACKAGE-$VERSION to keep variables |
pankso@45 | 24 # and to have a nice clean. |
pankso@3818 | 25 mv mozilla-* $PACKAGE-$VERSION 2>/dev/null |
pankso@45 | 26 cp -a stuff/firefox.mozconfig $src/.mozconfig |
pankso@45 | 27 cd $src |
pascal@4509 | 28 sed -i 's/xtype/type/' toolkit/mozapps/installer/packager.mk |
pascal@2486 | 29 ./configure $CONFIGURE_ARGS && |
pascal@2486 | 30 make && |
pankso@45 | 31 make DESTDIR=$PWD/_pkg install |
pankso@45 | 32 } |
pankso@45 | 33 |
pankso@45 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@45 | 35 genpkg_rules() |
pankso@45 | 36 { |
pankso@629 | 37 mkdir -p $fs/usr/lib $fs/usr/share $fs/etc |
pankso@45 | 38 cp -a $_pkg/usr/bin $fs/usr |
pankso@922 | 39 cp -a $_pkg/usr/lib/$PACKAGE-$VERSION $fs/usr/lib |
pankso@45 | 40 |
pankso@2748 | 41 # Home page, bookmarks file and branding. |
pankso@922 | 42 cp -a stuff/browserconfig.properties $fs/usr/lib/$PACKAGE-$VERSION |
pankso@2748 | 43 cp -a stuff/bookmarks.html \ |
pankso@2748 | 44 $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile |
pankso@197 | 45 cp -a stuff/firefox-branding.js \ |
pankso@922 | 46 $fs/usr/lib/$PACKAGE-$VERSION/defaults/pref/ |
pankso@45 | 47 |
pankso@45 | 48 # User preference. |
pankso@922 | 49 cp -a stuff/prefs.js $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile |
pankso@45 | 50 cp -a stuff/userChrome.css \ |
pankso@922 | 51 $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile/chrome |
pankso@45 | 52 |
pankso@45 | 53 # Move default config to /etc/firefox (/usr maybe read-only) |
pascal@1431 | 54 for i in defaults browserconfig.properties ; do |
pascal@1431 | 55 mv -f $fs/usr/lib/$PACKAGE-$VERSION/$i $fs/etc/$PACKAGE |
pascal@1431 | 56 done |
pascal@1723 | 57 ln -s /etc/$PACKAGE/browserconfig.properties $fs/usr/lib/$PACKAGE-$VERSION |
pascal@1724 | 58 ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-$VERSION/defaults |
pankso@3818 | 59 |
pankso@921 | 60 # EULA is accepted by SliTaz project. |
pankso@921 | 61 sed -i s:'pref("browser.EULA.3.accepted", false);':'pref("browser.EULA.3.accepted", true);': \ |
pankso@921 | 62 $fs/etc/firefox/pref/firefox.js |
pankso@840 | 63 |
pankso@45 | 64 # Locale fr |
pankso@45 | 65 tar xjf stuff/langpack-fr@firefox.mozilla.org.tar.bz2 \ |
pascal@1709 | 66 -C $fs/usr/lib/$PACKAGE-$VERSION/extensions |
pankso@3818 | 67 #sed -i "s/maxVersion>3.0../maxVersion>$VERSION/" \ |
pankso@3818 | 68 # $fs/usr/lib/$PACKAGE-$VERSION/extensions/langpack*/install.rdf |
pankso@3818 | 69 |
pankso@629 | 70 # Search Plugin (by: oddball) |
pankso@1018 | 71 cp -a stuff/searchplugins $fs/usr/lib/firefox-$VERSION/ |
pankso@629 | 72 chown -R root.root $fs |
pankso@840 | 73 |
pankso@45 | 74 # Remove unnecessary files. |
pankso@922 | 75 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries/* |
pankso@922 | 76 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/icons |
pankso@922 | 77 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/libsqlite3.so |
pankso@45 | 78 } |
pankso@45 | 79 |
pankso@45 | 80 # Pre - Post install command to set default locale. |
pankso@45 | 81 pre_install() |
pankso@45 | 82 { |
pankso@45 | 83 local root |
pankso@45 | 84 root=$1 |
pascal@1702 | 85 # Get old plugins |
pascal@1702 | 86 mkdir /tmp/firefox-plugins-$$ |
pascal@1702 | 87 cp -a $root/usr/lib/firefox-*/plugins/* /tmp/firefox-plugins-$$ 2> /dev/null |
pankso@2748 | 88 # Remove old libs and configs |
pankso@45 | 89 rm -rf $root/usr/lib/firefox-* |
pankso@2748 | 90 rm -rf $root/etc/firefox |
pankso@45 | 91 } |
pankso@45 | 92 post_install() |
pankso@45 | 93 { |
pankso@45 | 94 local root |
pankso@45 | 95 root=$1 |
pankso@1018 | 96 if grep -q "fr_*" $root/etc/locale.conf 2>/dev/null; then |
pankso@629 | 97 sed -i 's/en-US/fr/' \ |
pankso@840 | 98 $root/etc/firefox/pref/firefox-l10n.js |
pankso@45 | 99 fi |
pascal@1702 | 100 for i in /tmp/firefox-plugins-$$/* ; do |
pascal@1702 | 101 [ -e $i ] || continue |
pascal@1702 | 102 [ -e /usr/lib/firefox-*/plugins/$(basename $i) ] && continue |
pascal@1702 | 103 cp -a $i /usr/lib/firefox-*/plugins/ |
pascal@1702 | 104 done |
pascal@1702 | 105 rm -rf /tmp/firefox-plugins-$$ |
pankso@45 | 106 } |