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