2012-06-20 00:11:24 +00:00
|
|
|
# $Id: PKGBUILD 161877 2012-06-16 01:15:20Z ibiru $
|
|
|
|
# Maintainer : Ionut Biru <ibiru@archlinux.org>
|
|
|
|
# Contributor: Jakub Schmidtke <sjakub@gmail.com>
|
|
|
|
|
2012-06-20 00:16:38 +00:00
|
|
|
# ALARM: Dan Cecile <dancecile@gmail.com>
|
|
|
|
# - changed GCC from 4.6 to system default
|
|
|
|
|
|
|
|
buildarch=4
|
2012-06-26 23:58:11 +00:00
|
|
|
highmem=1
|
2012-06-20 00:16:38 +00:00
|
|
|
|
2012-06-20 00:11:24 +00:00
|
|
|
pkgname=firefox
|
2012-08-04 17:50:23 +00:00
|
|
|
pkgver=14.0.1
|
2012-06-20 00:11:24 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Standalone web browser from mozilla.org"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
license=('MPL' 'GPL' 'LGPL')
|
|
|
|
depends=('gtk2' 'mozilla-common' 'libxt' 'startup-notification' 'mime-types' 'dbus-glib' 'alsa-lib'
|
|
|
|
'libnotify' 'desktop-file-utils' 'hicolor-icon-theme'
|
|
|
|
'libvpx' 'libevent' 'nss>=3.13.3' 'hunspell' 'sqlite')
|
|
|
|
makedepends=('unzip' 'zip' 'diffutils' 'python2' 'wireless_tools' 'yasm' 'mesa'
|
2012-06-20 00:16:38 +00:00
|
|
|
'autoconf2.13' 'libidl2' 'xorg-server-xvfb' 'imake')
|
2012-06-20 00:11:24 +00:00
|
|
|
optdepends=('wireless_tools: Location detection via available WiFi networks')
|
|
|
|
url="http://www.mozilla.org/projects/firefox"
|
|
|
|
install=firefox.install
|
|
|
|
options=(!emptydirs)
|
|
|
|
source=(https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.bz2
|
2012-08-04 17:50:23 +00:00
|
|
|
mozconfig firefox.desktop firefox-install-dir.patch vendor.js shared-libs.patch)
|
|
|
|
md5sums=('c2f884f0f6c41c65cf20f678a1ee7191'
|
2012-06-20 00:11:24 +00:00
|
|
|
'5644c7b42f51013e2023787938fa955e'
|
|
|
|
'bdeb0380c7fae30dd0ead6d2d3bc5873'
|
|
|
|
'594523c536a9be951b52c90dd85aff18'
|
2012-08-04 17:50:23 +00:00
|
|
|
'0d053487907de4376d67d8f499c5502b'
|
|
|
|
'52e52f840a49eb1d14be1c0065b03a93')
|
2012-06-20 00:11:24 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd mozilla-release
|
|
|
|
|
|
|
|
cp ../mozconfig .mozconfig
|
|
|
|
patch -Np1 -i ../firefox-install-dir.patch
|
2012-08-04 17:50:23 +00:00
|
|
|
patch -Np1 -i ../shared-libs.patch
|
2012-06-20 00:11:24 +00:00
|
|
|
|
|
|
|
# Fix PRE_RELEASE_SUFFIX
|
|
|
|
sed -i '/^PRE_RELEASE_SUFFIX := ""/s/ ""//' \
|
|
|
|
browser/base/Makefile.in
|
|
|
|
|
|
|
|
export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/firefox"
|
|
|
|
export PYTHON="/usr/bin/python2"
|
|
|
|
export MOZ_MAKE_FLAGS="$MAKEFLAGS"
|
|
|
|
unset MAKEFLAGS
|
|
|
|
|
|
|
|
# Enable PGO
|
|
|
|
export MOZ_PGO=1
|
|
|
|
export DISPLAY=:99
|
|
|
|
Xvfb -nolisten tcp -extension GLX -screen 0 1280x1024x24 $DISPLAY &
|
|
|
|
|
|
|
|
make -f client.mk build
|
|
|
|
|
|
|
|
kill $! || true
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd mozilla-release
|
|
|
|
make -j1 -f client.mk DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
install -m644 ../vendor.js "$pkgdir/usr/lib/firefox/defaults/pref"
|
|
|
|
|
|
|
|
for i in 16 22 24 32 48 256; do
|
|
|
|
install -Dm644 browser/branding/official/default$i.png \
|
|
|
|
"$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/firefox.png"
|
|
|
|
done
|
|
|
|
|
|
|
|
install -Dm644 ../firefox.desktop \
|
|
|
|
"$pkgdir/usr/share/applications/firefox.desktop"
|
|
|
|
|
|
|
|
# Use system-provided dictionaries
|
|
|
|
rm -rf "$pkgdir"/usr/lib/firefox/{dictionaries,hyphenation}
|
|
|
|
ln -s /usr/share/hunspell "$pkgdir/usr/lib/firefox/dictionaries"
|
|
|
|
ln -s /usr/share/hyphen "$pkgdir/usr/lib/firefox/hyphenation"
|
|
|
|
|
|
|
|
# We don't want the development stuff
|
|
|
|
rm -r "$pkgdir"/usr/{include,lib/firefox-devel,share/idl}
|
|
|
|
|
|
|
|
#workaround for now
|
|
|
|
#https://bugzilla.mozilla.org/show_bug.cgi?id=658850
|
|
|
|
ln -sf firefox "$pkgdir/usr/lib/firefox/firefox-bin"
|
|
|
|
}
|