wok annotate firefox/receipt @ rev 10880
vnc2flv: Fixed WGET_URL.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Jun 25 09:39:04 2011 +0000 (2011-06-25) |
parents | 634770170170 |
children | 4d5a84939dfc |
rev | line source |
---|---|
pankso@45 | 1 # SliTaz package receipt. |
pankso@45 | 2 |
pankso@45 | 3 PACKAGE="firefox" |
slaxemulator@9642 | 4 VERSION="4.0.1" |
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@4079 | 8 TARBALL="$PACKAGE-$VERSION.source.tar.bz2" |
pankso@45 | 9 WEB_SITE="http://www.mozilla.org/" |
pankso@4079 | 10 WGET_URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/source/$TARBALL" |
pascal@1431 | 11 CONFIG_FILES="/etc/firefox" |
jozee@4936 | 12 TAGS="browser" |
pankso@45 | 13 |
pankso@10737 | 14 DEPENDS="gtk+ sqlite dbus dbus-glib glib jpeg xorg-libX11 xorg-libXdamage \ |
pankso@10737 | 15 alsa-lib xorg-libXt libfirefox libnotify" |
pankso@10737 | 16 BUILD_DEPENDS="zip libIDL coreutils findutils libnotify-dev wireless_tools-dev \ |
pankso@10737 | 17 perl python yasm alsa-lib-dev mesa-dev" |
pankso@10737 | 18 |
pankso@45 | 19 # Rules to configure and make the package. |
pankso@45 | 20 # |
pankso@45 | 21 # A long compile time... dont forget to build libidl before and check the |
pankso@45 | 22 # .mozconfig file from the stuff and the stuff/README document. |
pankso@45 | 23 # |
pankso@45 | 24 compile_rules() |
pankso@45 | 25 { |
slaxemulator@9382 | 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@5777 | 30 make -j 4 && |
pankso@10737 | 31 make DESTDIR=$DESTDIR install && |
pankso@10737 | 32 cp -a xpcom/typelib $DESTDIR |
pankso@45 | 33 } |
pankso@45 | 34 |
pankso@45 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@45 | 36 genpkg_rules() |
pankso@45 | 37 { |
pankso@10737 | 38 mkdir -p $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile/chrome \ |
pankso@10737 | 39 $fs/usr/share $fs/etc |
pankso@45 | 40 cp -a $_pkg/usr/bin $fs/usr |
pankso@922 | 41 cp -a $_pkg/usr/lib/$PACKAGE-$VERSION $fs/usr/lib |
pankso@45 | 42 |
pankso@2748 | 43 # Home page, bookmarks file and branding. |
slaxemulator@9382 | 44 cp -a $stuff/browserconfig.properties $fs/usr/lib/$PACKAGE-$VERSION |
slaxemulator@9382 | 45 cp -a $stuff/bookmarks.html \ |
pankso@2748 | 46 $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile |
slaxemulator@9382 | 47 cp -a $stuff/firefox-branding.js \ |
slaxemulator@9382 | 48 $fs/usr/lib/$PACKAGE-$VERSION/defaults/pref/firefox.js |
pankso@45 | 49 |
pankso@45 | 50 # User preference. |
slaxemulator@9382 | 51 cp -a $stuff/prefs.js $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile |
slaxemulator@9382 | 52 cp -a $stuff/userChrome.css \ |
pankso@922 | 53 $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile/chrome |
pankso@45 | 54 |
pankso@45 | 55 # Move default config to /etc/firefox (/usr maybe read-only) |
pascal@1431 | 56 for i in defaults browserconfig.properties ; do |
pascal@1431 | 57 mv -f $fs/usr/lib/$PACKAGE-$VERSION/$i $fs/etc/$PACKAGE |
pascal@1431 | 58 done |
slaxemulator@9382 | 59 |
slaxemulator@9603 | 60 # added firefox-l10n.js to stuff to make sure its copyed for langpacks |
slaxemulator@9603 | 61 cp -a $stuff/firefox-l10n.js \ |
slaxemulator@9603 | 62 $fs/etc/firefox/pref/firefox-l10n.js |
slaxemulator@9382 | 63 |
pascal@1723 | 64 ln -s /etc/$PACKAGE/browserconfig.properties $fs/usr/lib/$PACKAGE-$VERSION |
pascal@1724 | 65 ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-$VERSION/defaults |
pankso@3818 | 66 |
pankso@921 | 67 # EULA is accepted by SliTaz project. |
pankso@921 | 68 sed -i s:'pref("browser.EULA.3.accepted", false);':'pref("browser.EULA.3.accepted", true);': \ |
pankso@921 | 69 $fs/etc/firefox/pref/firefox.js |
pankso@840 | 70 |
pankso@629 | 71 # Search Plugin (by: oddball) |
slaxemulator@9382 | 72 cp -a $stuff/searchplugins $fs/usr/lib/firefox-$VERSION/ |
pankso@629 | 73 chown -R root.root $fs |
pankso@840 | 74 |
pankso@45 | 75 # Remove unnecessary files. |
pankso@922 | 76 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries/* |
pankso@922 | 77 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/icons |
jozee@5038 | 78 # split firefox libs |
jozee@5038 | 79 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/*.so |
jozee@5038 | 80 #retain big firefox libs |
slaxemulator@9382 | 81 cp $_pkg/usr/lib/$PACKAGE-$VERSION/libxul.so \ |
jozee@5038 | 82 $fs/usr/lib/$PACKAGE-$VERSION |
pankso@45 | 83 } |
pankso@45 | 84 |
pankso@45 | 85 # Pre - Post install command to set default locale. |
pankso@45 | 86 pre_install() |
pankso@45 | 87 { |
pankso@45 | 88 local root |
pankso@45 | 89 root=$1 |
pascal@1702 | 90 # Get old plugins |
pascal@1702 | 91 mkdir /tmp/firefox-plugins-$$ |
pascal@1702 | 92 cp -a $root/usr/lib/firefox-*/plugins/* /tmp/firefox-plugins-$$ 2> /dev/null |
pankso@2748 | 93 # Remove old libs and configs |
jozee@5038 | 94 rm -rf $root/usr/lib/firefox-*/plugins |
jozee@5038 | 95 rm -rf $root/usr/lib/firefox-*/dictionaries |
pankso@2748 | 96 rm -rf $root/etc/firefox |
pankso@45 | 97 } |
pankso@45 | 98 post_install() |
pankso@45 | 99 { |
pankso@45 | 100 local root |
pankso@45 | 101 root=$1 |
pankso@1018 | 102 if grep -q "fr_*" $root/etc/locale.conf 2>/dev/null; then |
pankso@629 | 103 sed -i 's/en-US/fr/' \ |
pankso@840 | 104 $root/etc/firefox/pref/firefox-l10n.js |
pankso@45 | 105 fi |
pascal@1702 | 106 for i in /tmp/firefox-plugins-$$/* ; do |
pascal@1702 | 107 [ -e $i ] || continue |
pascal@1702 | 108 [ -e /usr/lib/firefox-*/plugins/$(basename $i) ] && continue |
pascal@1702 | 109 cp -a $i /usr/lib/firefox-*/plugins/ |
pascal@1702 | 110 done |
pascal@1702 | 111 rm -rf /tmp/firefox-plugins-$$ |
pankso@45 | 112 } |