wok diff firefox/receipt @ rev 14257
syslinux/iso2exe: check kernel version, add floppy bootstrap stub
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 28 11:51:42 2013 +0100 (2013-03-28) |
parents | 6b09507225ec |
children | f79ea815af04 |
line diff
1.1 --- a/firefox/receipt Sat Jan 05 14:44:51 2013 +0100 1.2 +++ b/firefox/receipt Thu Mar 28 11:51:42 2013 +0100 1.3 @@ -1,124 +1,137 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="firefox" 1.7 -VERSION="10.0.2" 1.8 +VERSION="17.0.4esr" 1.9 CATEGORY="network" 1.10 SHORT_DESC="User friendly, secure and fast web browser." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 TARBALL="$PACKAGE-$VERSION.source.tar.bz2" 1.13 -WEB_SITE="http://www.mozilla.org/" 1.14 -#WGET_URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/source/$TARBALL" 1.15 +WEB_SITE="http://www.mozilla.org/firefox" 1.16 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/source/$TARBALL" 1.17 -CONFIG_FILES="/etc/firefox" 1.18 TAGS="browser" 1.19 1.20 DEPENDS="gtk+ sqlite dbus dbus-glib glib jpeg xorg-libX11 xorg-libXdamage \ 1.21 -alsa-lib xorg-libXt libfirefox libevent libvpx" 1.22 +alsa-lib xorg-libXt libevent libvpx pango nss sqlite libfirefox \ 1.23 +gstreamer gst-plugins-base" 1.24 BUILD_DEPENDS="zip libIDL coreutils findutils wireless_tools-dev \ 1.25 perl python yasm alsa-lib-dev mesa-dev libevent-dev libvpx-dev dbus-dev \ 1.26 -dbus-glib-dev gtk+-dev glib-dev" 1.27 +dbus-glib-dev gtk+-dev glib-dev pango-dev nss-dev sqlite-dev tar gzip \ 1.28 +gstreamer-dev gst-plugins-base-dev" 1.29 1.30 # Rules to configure and make the package. 1.31 # 1.32 # A long compile time... dont forget to build libidl before and check the 1.33 # .mozconfig file from the stuff and the stuff/README document. 1.34 # 1.35 +# WARNING: 1GB RAM minimum. Additional RAM will significantly decrease 1.36 +# build time. 1.37 +# At least 2.5 GB free disk space 1.38 + 1.39 compile_rules() 1.40 { 1.41 - cp -a $stuff/firefox.mozconfig $src/.mozconfig 1.42 cd $src 1.43 - patch -Np1 -i $stuff/mozilla-firefox-1.0-lang.patch 1.44 - patch -Np1 -i $stuff/firefox-install-dir.patch 1.45 + # load mozconfig 1.46 + cp -a $stuff/mozconfig $src 1.47 1.48 - # Fix PRE_RELEASE_SUFFIX 1.49 - sed -i '/^PRE_RELEASE_SUFFIX := ""/s/ ""//' \ 1.50 - browser/base/Makefile.in 1.51 + # build firefox and create a firefox tarball 1.52 + # reducing log size: hide c++, nsinstall, python msgs 1.53 + # Exception... Component returned failure code: known bug #696763 1.54 + make -f client.mk | egrep -v "c++|nsinstall|python" && 1.55 + make -C obj-firefox/browser/installer 1.56 1.57 - # Don't generate startup cache. Unbreaks build 1.58 - sed -i 's/^GENERATE_CACHE ?=.*/GENERATE_CACHE = true/' \ 1.59 - toolkit/mozapps/installer/packager.mk 1.60 - ./configure $CONFIGURE_ARGS && 1.61 - make $MAKEFLAGS && 1.62 - make DESTDIR=$DESTDIR install && 1.63 - cp -a xpcom/typelib $DESTDIR 1.64 + # install 1.65 + # locate tarball 1.66 + local tarball tarpath fn1 fn2 1.67 + tarpath=$src/obj-firefox/dist 1.68 + fn1="$tarpath/firefox-${VERSION%esr}.en-US.linux-$ARCH.tar.bz2" 1.69 + fn2="$tarpath/firefox-${VERSION%esr}.en-US.linux-$(uname -m).tar.bz2" 1.70 + [ -e "$fn1" ] && tarball="$fn1" && echo "$ARCH tarball found" 1.71 + [ -e "$fn2" ] && tarball="$fn2" && echo "$(uname -m) tarball found" 1.72 + [ -z "$tarball" ] && echo "ERROR: tarball not found" && exit 1 1.73 + # extract tarball 1.74 + mkdir -p $install/usr/lib/firefox-$VERSION && 1.75 + tar -xvf $tarball -C $install/usr/lib/firefox-$VERSION \ 1.76 + --strip-components=1 && 1.77 + chown -R -v root:root $install/usr/lib/firefox-$VERSION && 1.78 + chmod -v 755 $install/usr/lib/firefox-$VERSION/libxpcom.so && 1.79 + # install symlink in /usr/bin 1.80 + mkdir -p $install/usr/bin && 1.81 + ln -sf ../lib/firefox-$VERSION/firefox $install/usr/bin && 1.82 + # install symlink for plugins 1.83 + mkdir -p $install/usr/lib/mozilla/plugins && 1.84 + ln -sf ../mozilla/plugins $install/usr/lib/firefox-$VERSION 1.85 } 1.86 1.87 # Rules to gen a SliTaz package suitable for Tazpkg. 1.88 genpkg_rules() 1.89 { 1.90 - mkdir -p $fs/usr/lib/$PACKAGE \ 1.91 - $fs/usr/share $fs/etc/$PACKAGE/profile/chrome 1.92 + # program 1.93 + printf "Installing program.." 1.94 + mkdir -p $fs/usr/lib && 1.95 + cp -a $install/usr/lib/$PACKAGE-$VERSION $fs/usr/lib && 1.96 + cp -a $install/usr/lib/mozilla $fs/usr/lib && 1.97 cp -a $install/usr/bin $fs/usr 1.98 - cp -a $install/usr/lib/$PACKAGE $fs/usr/lib 1.99 + status 1.100 1.101 - # Home page, bookmarks file and branding. 1.102 - cp -a $stuff/browserconfig.properties $fs/etc/$PACKAGE 1.103 - cp -a $stuff/bookmarks.html \ 1.104 - $fs/etc/$PACKAGE/profile 1.105 - mkdir -p $fs/etc/$PACKAGE/pref 1.106 - cp -a $stuff/firefox-branding.js \ 1.107 - $fs/etc/$PACKAGE/pref/firefox.js 1.108 + # search Plugin (by: oddball) 1.109 + printf "Installing SliTaz search plugins.." 1.110 + cp -a $stuff/searchplugins $fs/usr/lib/$PACKAGE-$VERSION 1.111 + status 1.112 1.113 - # User preference. 1.114 - cp -a $stuff/prefs.js $fs/etc/$PACKAGE/profile 1.115 - cp -a $stuff/userChrome.css \ 1.116 - $fs/etc/$PACKAGE/profile/chrome 1.117 + # prefs 1.118 + printf "Installing SliTaz preferences.." 1.119 + mkdir -p $fs/usr/lib/$PACKAGE-$VERSION/distribution && 1.120 + cp -a $stuff/distribution.ini $fs/usr/lib/$PACKAGE-$VERSION/distribution 1.121 + status 1.122 1.123 - # added firefox-l10n.js to stuff to make sure its copyed for langpacks 1.124 - cp -a $stuff/firefox-l10n.js \ 1.125 - $fs/etc/$PACKAGE/pref/firefox-l10n.js 1.126 + # mozilla-common files 1.127 + # dictionaries 1.128 + printf "Installing common dictionnaries.." 1.129 + rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries && 1.130 + ln -sf ../mozilla-common-$VERSION/dictionaries \ 1.131 + $fs/usr/lib/$PACKAGE-$VERSION/dictionaries 1.132 + status 1.133 + # plugin-container 1.134 + printf "Installing common plugin-container" 1.135 + rm -f $fs/usr/lib/$PACKAGE-$VERSION/plugin-container && 1.136 + ln -sf ../mozilla-common-$VERSION/plugin-container \ 1.137 + $fs/usr/lib/$PACKAGE-$VERSION/plugin-container 1.138 + status 1.139 + # mozilla-xremote-client 1.140 + printf "Installing common mozilla-xremote-client" 1.141 + rm -f $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client && 1.142 + ln -sf ../mozilla-common-$VERSION/mozilla-xremote-client \ 1.143 + $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client 1.144 + status 1.145 + # components/libdbusservice.so 1.146 + # components/libmozgnome.so 1.147 + for file in libdbusservice.so libmozgnome.so; do 1.148 + printf "Installing common components/$file" 1.149 + rm -f $fs/usr/lib/$PACKAGE-$VERSION/components/$file && 1.150 + ln -sf ../../mozilla-common-$VERSION/components/$file \ 1.151 + $fs/usr/lib/$PACKAGE-$VERSION/components/$file 1.152 + status 1.153 + done 1.154 + # chrome.manifest 1.155 + printf "Installing common chrome.manifest" 1.156 + rm -f $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest && 1.157 + ln -sf ../mozilla-common-$VERSION/chrome.manifest \ 1.158 + $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest 1.159 + status 1.160 1.161 - rm -rf $fs/usr/lib/$PACKAGE/defaults 1.162 + # run-mozilla.sh 1.163 + printf "Installing common run-mozilla.sh" 1.164 + rm -f $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh && 1.165 + ln -sf ../mozilla-common-$VERSION/run-mozilla.sh \ 1.166 + $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh 1.167 + status 1.168 1.169 - ln -sf /etc/$PACKAGE/browserconfig.properties $fs/usr/lib/$PACKAGE 1.170 - ln -sf /etc/$PACKAGE $fs/usr/lib/$PACKAGE/defaults 1.171 + # libmozalloc.so 1.172 + printf "Installing common libmozalloc.so" 1.173 + rm -f $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so && 1.174 + ln -sf ../mozilla-common-$VERSION/libmozalloc.so \ 1.175 + $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so 1.176 + status 1.177 1.178 - # EULA is accepted by SliTaz project. 1.179 - sed -i s:'pref("browser.EULA.3.accepted", false);':'pref("browser.EULA.3.accepted", true);': \ 1.180 - $fs/etc/firefox/pref/firefox.js 1.181 - 1.182 - # Search Plugin (by: oddball) 1.183 - cp -a $stuff/searchplugins $fs/usr/lib/firefox/ 1.184 chown -R root.root $fs 1.185 - 1.186 - # Remove unnecessary files. 1.187 - rm -rf $fs/usr/lib/$PACKAGE/dictionaries/* 1.188 - rm -rf $fs/usr/lib/$PACKAGE/icons 1.189 - # split firefox libs 1.190 - rm -rf $fs/usr/lib/$PACKAGE/*.so 1.191 - #retain big firefox libs 1.192 - cp -a $install/usr/lib/$PACKAGE/libxul.so \ 1.193 - $fs/usr/lib/$PACKAGE 1.194 - #workaround for now 1.195 - #https://bugzilla.mozilla.org/show_bug.cgi?id=658850 1.196 - ln -sf firefox $fs/usr/lib/$PACKAGE/firefox-bin 1.197 } 1.198 - 1.199 -# Pre - Post install command to set default locale. 1.200 -pre_install() 1.201 -{ 1.202 - local root 1.203 - root=$1 1.204 - # Get old plugins 1.205 - mkdir /tmp/firefox-plugins-$$ 1.206 - cp -a $root/usr/lib/firefox/plugins/* /tmp/firefox-plugins-$$ 2> /dev/null 1.207 - # Remove old libs and configs 1.208 - rm -rf $root/usr/lib/firefox/plugins 1.209 - rm -rf $root/usr/lib/firefox/dictionaries 1.210 - rm -rf $root/etc/firefox 1.211 -} 1.212 -post_install() 1.213 -{ 1.214 - local root 1.215 - root=$1 1.216 - if grep -q "fr_*" $root/etc/locale.conf 2>/dev/null; then 1.217 - sed -i 's/en-US/fr/' \ 1.218 - $root/etc/firefox/pref/firefox-l10n.js 1.219 - fi 1.220 - for i in /tmp/firefox-plugins-$$/* ; do 1.221 - [ -e $i ] || continue 1.222 - [ -e /usr/lib/firefox/plugins/$(basename $i) ] && continue 1.223 - cp -a $i /usr/lib/firefox/plugins/ 1.224 - done 1.225 - rm -rf /tmp/firefox-plugins-$$ 1.226 -}