# Description: Navigateur internet de Mozilla # URL: http://www.mozilla.com/firefox/ # Maintainer: NuTyX core team # Packager: thierryn1 at hispeed dot ch # Depends on: libevent,yasm, desktop-file-utils, startup-notification, alsa-lib, mesa3d, gtk, libidl, pango, curl, nss, libnotify, dbus-glib, hunspell # Run on: libevent,desktop-file-utils,startup-notification,alsa-lib,mesa3d,gtk,libidl,pango,curl,nss,libnotify,dbus-glib,hunspell name=firefox version=13.0.1 release=1 [ "`uname -m`" == "i686" ] && _ARCH=i686 [ "`uname -m`" == "x86_64" ] && _ARCH=x86_64 source=(ftp://ftp.mozilla.org/pub/mozilla.org/$name/releases/$version/source/$name-$version.source.tar.bz2 firefox.desktop firefox-install-dir.patch vendor.js) build() { wget ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$version/linux-`uname -m`/xpi/fr.xpi cd "mozilla-release" patch -Np1 -i $SRC/firefox-install-dir.patch # Création du mozconfig cat > mozconfig << EOF # for multicore machine you can speed up the build by running mk_add_options MOZ_MAKE_FLAGS="-j5" # If you have installed wireless-tools delete this option: ac_add_options --disable-necko-wifi # If you have installed xulrunner uncomment these two lines: # ac_add_options --with-system-libxul # ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul) # Uncomment these if you have installed them: ac_add_options --enable-startup-notification # ac_add_options --with-system-libvpx mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir ac_add_options --enable-official-branding ac_add_options --prefix=/usr # The rest of these options have no effect if you're # building against an already installed xulrunner: ac_add_options --disable-crashreporter ac_add_options --disable-debug ac_add_options --disable-installer ac_add_options --disable-static ac_add_options --disable-tests ac_add_options --disable-updater ac_add_options --enable-shared ac_add_options --enable-system-cairo ac_add_options --enable-system-ffi ac_add_options --with-pthreads ac_add_options --with-system-jpeg ac_add_options --with-system-png ac_add_options --with-system-zlib ac_add_options --with-system-nspr ac_add_options --with-system-nss ac_add_options --enable-system-hunspell ac_add_options --enable-system-sqlite EOF # Fix PRE_RELEASE_SUFFIX sed -i '/^PRE_RELEASE_SUFFIX := ""/s/ ""//' browser/base/Makefile.in export PYTHON="/usr/bin/python2" LD_PRELOAD="" DISPLAY=:99 make -f client.mk profiledbuild MOZ_MAKE_FLAGS="$MAKEFLAGS" make -f client.mk DESTDIR="$PKG" install mkdir -p $PKG/usr/lib/firefox/defaults/pref install -m644 $SRC/vendor.js $PKG/usr/lib/firefox/defaults/pref for i in 16 22 24 32 48 256; do install -Dm644 browser/branding/official/default$i.png \ "$PKG/usr/share/icons/hicolor/${i}x${i}/apps/firefox.png" done install -Dm644 "$SRC/firefox.desktop" \ "$PKG/usr/share/applications/firefox.desktop" rm -rf $PKG/usr/lib/firefox/{dictionaries,hyphenation} ln -s /usr/share/hunspell $PKG/usr/lib/firefox/dictionaries ln -s /usr/share/hyphen $PKG/usr/lib/firefox/hyphenation rm -r $PKG/usr/{include,lib/firefox-devel,share/idl} install -Dm644 $SRC/fr.xpi \ $PKG/usr/lib/firefox/extensions/langpack-fr@firefox.mozilla.org.xpi }