wok-4.x diff firefox/receipt @ rev 68
Add : wxWidgets libs + dev package
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Dec 24 16:07:17 2007 +0100 (2007-12-24) |
parents | |
children | 1b129a8fd309 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/firefox/receipt Mon Dec 24 16:07:17 2007 +0100 1.3 @@ -0,0 +1,82 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="firefox" 1.7 +VERSION="2.0.0.11" 1.8 +CATEGORY="extra" 1.9 +SHORT_DESC="User friendly, secure and fast web browser." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +DEPENDS="gtk+" 1.12 +TARBALL="$PACKAGE-$VERSION-source.tar.bz2" 1.13 +WEB_SITE="http://www.mozilla.org/" 1.14 +WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/source/$TARBALL" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +# 1.18 +# A long compile time... dont forget to build libidl before and check the 1.19 +# .mozconfig file from the stuff and the stuff/README document. 1.20 +# 1.21 +compile_rules() 1.22 +{ 1.23 + # Move the mozilla source tree to $PACKAGE-$VERSION to keep variables 1.24 + # and to have a nice clean. 1.25 + # 1.26 + mv mozilla $PACKAGE-$VERSION 1.27 + cp -a stuff/firefox.mozconfig $src/.mozconfig 1.28 + cd $src 1.29 + ./configure $CONFIGURE_ARGS 1.30 + make 1.31 + make DESTDIR=$PWD/_pkg install 1.32 +} 1.33 + 1.34 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.35 +genpkg_rules() 1.36 +{ 1.37 + mkdir -p $fs/usr/lib $fs/usr/share/pixmaps $fs/etc 1.38 + cp -a $_pkg/usr/bin $fs/usr 1.39 + cp -a $_pkg/usr/lib/$PACKAGE-$VERSION $fs/usr/lib 1.40 + 1.41 + # SliTaz Web site for the home page and bookmarks file. 1.42 + cp -a stuff/browserconfig.properties $fs/usr/lib/$PACKAGE-$VERSION 1.43 + cp -a stuff/bookmarks.html $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile 1.44 + 1.45 + # User preference. 1.46 + cp -a stuff/prefs.js $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile 1.47 + cp -a stuff/userChrome.css \ 1.48 + $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile/chrome 1.49 + 1.50 + # Mozilla default pixmaps and Firefox icon from the stuff. 1.51 + cp -a stuff/mozicon.png $fs/usr/share/pixmaps 1.52 + rm -rf $fs/usr/lib/$PACKAGE-$VERSION/icons 1.53 + 1.54 + # Move default config to /etc/firefox (/usr maybe read-only) 1.55 + mv -f $fs/usr/lib/$PACKAGE-$VERSION/defaults $fs/etc/$PACKAGE 1.56 + ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-$VERSION/defaults 1.57 + 1.58 + # Strip 1.59 + strip -s $fs/usr/lib/$PACKAGE-$VERSION/* 2>/dev/null 1.60 + 1.61 + # Locale fr 1.62 + tar xjf stuff/langpack-fr@firefox.mozilla.org.tar.bz2 \ 1.63 + -C $fs/usr/lib/$PACKAGE-$VERSION/extensions 1.64 + 1.65 + # Remove unnecessary files. 1.66 + rm -f $fs/usr/lib/$PACKAGE-$VERSION/TestGtkEmbed 1.67 +} 1.68 + 1.69 +# Pre - Post install command to set default locale. 1.70 +pre_install() 1.71 +{ 1.72 + local root 1.73 + root=$1 1.74 + # Remove old libs 1.75 + rm -rf $root/usr/lib/firefox-* 1.76 +} 1.77 +post_install() 1.78 +{ 1.79 + local root 1.80 + root=$1 1.81 + if grep -q "fr_*" $root/etc/locale.conf; then 1.82 + sed -i 's/en-US/fr/' \ 1.83 + $root/usr/lib/$PACKAGE-$VERSION/defaults/pref/firefox-l10n.js 1.84 + fi 1.85 +}