# Contributor: William Pitcock # Maintainer: William Pitcock pkgname=firefox pkgver=6.0 _pkgver=6.0 _xulver=6.0 pkgrel=1 pkgdesc="firefox web browser" url="http://www.firefox.com" arch="all" license="GPL LGPL MPL" depends="xulrunner" makedepends="xulrunner-dev>=${_xulver} nspr-dev nss-dev gtk+-dev mesa-dev dbus-glib-dev alsa-lib-dev libvorbis-dev libogg-dev libtheora-dev wireless-tools-dev libnotify-dev libevent-dev libxt-dev jpeg-dev bzip2-dev hunspell-dev startup-notification-dev sqlite-dev libidl-dev autoconf2.13 python zip yasm autoconf automake libtool paxctl" install="" subpackages="" source="http://releases.mozilla.org/pub/mozilla.org/${pkgname}/releases/${pkgver}/source/${pkgname}-${_pkgver}.source.tar.bz2 mozconfig firefox.desktop firefox-safe.desktop" _builddir="${srcdir}/mozilla-release" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done cp "${srcdir}/mozconfig" .mozconfig } build() { cd "$_builddir" # mozilla's buildsystem is on drugs, so we just kill our CFLAGS and hope # for the best. --nenolod unset CFLAGS unset CXXFLAGS make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS" || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" -f client.mk install || return 1 install -m755 -d ${pkgdir}/usr/share/applications install -m755 -d ${pkgdir}/usr/share/pixmaps install -m644 "$_builddir"/browser/branding/official/default48.png \ ${pkgdir}/usr/share/pixmaps/firefox.png || return 1 install -m644 ${srcdir}/firefox.desktop ${pkgdir}/usr/share/applications/firefox.desktop install -m644 ${srcdir}/firefox-safe.desktop ${pkgdir}/usr/share/applications/firefox-safe.desktop # firefox currently does not work with mprotect. disable it for now paxctl -c -m "$pkgdir"/usr/lib/firefox-$pkgver/firefox || return 1 # xulrunner stub launcher has changed to using a symlink overlay... go figure ln -sf /usr/lib/xulrunner-${_xulver} ${pkgdir}/usr/lib/firefox-${pkgver}/xulrunner } md5sums="1840185865a1a8975df4a3db59080ddc firefox-6.0.source.tar.bz2 226f723ce7090d1ac590c880ffc8695b mozconfig ba96924ece1d77453e462429037a2ce5 firefox.desktop 6f38a5899034b7786cb1f75ad42032b8 firefox-safe.desktop"