updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / firefox-qt / PKGBUILD
blob64472a4eb152865f67e76089c84d07477896f157
1 # Contributor: Jakub Schmidtke <sjakub@gmail.com>
3 pkgname=firefox-qt
4 pkgver=9.0.1
5 pkgrel=1
6 pkgdesc="Web browser from mozilla.org, using Qt (experimental)"
7 arch=('i686' 'x86_64')
8 license=('MPL' 'GPL' 'LGPL')
9 depends=('qt' 'mozilla-common' 'nss>=3.13.1' 'libxt' 'hunspell' 'startup-notification'
10          'mime-types' 'dbus-glib' 'alsa-lib' 'sqlite3' 'libnotify'
11          'desktop-file-utils' 'libvpx' 'libevent' 'hicolor-icon-theme')
12 makedepends=('unzip' 'zip' 'python2' 'wireless_tools' 'yasm' 'mesa'
13              'autoconf2.13' 'libidl2' 'xorg-server-xvfb')
14 optdepends=('firefox-oxygen-kde')
15 provides=("firefox=$pkgver")
16 conflicts=('firefox')
17 url="http://www.mozilla.org/projects/firefox"
18 install=$pkgname.install
19 source=("ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.bz2"
20         'mozconfig' 'firefox.desktop' 'firefox-install-dir.patch' 'vendor.js')
21 md5sums=('7cf2bd379792a9b232267c6a79680566'
22          'b28ad1b873a715ed4b9fa8875c51dae5'
23          'bdeb0380c7fae30dd0ead6d2d3bc5873'
24          '594523c536a9be951b52c90dd85aff18'
25          '0d053487907de4376d67d8f499c5502b')
27 build() {
28   cd "$srcdir/mozilla-release"
30   cp "$srcdir/mozconfig" .mozconfig
31   patch -Np1 -i "$srcdir/firefox-install-dir.patch"
33   # Fix PRE_RELEASE_SUFFIX
34   sed -i '/^PRE_RELEASE_SUFFIX := ""/s/ ""//' \
35     browser/base/Makefile.in
37   export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/firefox"
38   export PYTHON="/usr/bin/python2"
40   LD_PRELOAD="" /usr/bin/Xvfb -nolisten tcp -extension GLX -screen 0 1280x1024x24 :99 &
41   #LD_PRELOAD="" DISPLAY=:99 make -j1 -f client.mk profiledbuild MOZ_MAKE_FLAGS="$MAKEFLAGS"
42   LD_PRELOAD="" DISPLAY=:99 make -j1 -f client.mk MOZ_MAKE_FLAGS="$MAKEFLAGS"
43   kill $! || true
46 package() {
47   cd "$srcdir/mozilla-release"
48   make -j1 -f client.mk DESTDIR="$pkgdir" install
50   install -m644 "$srcdir/vendor.js" "$pkgdir/usr/lib/firefox/defaults/pref"
52   for i in 16x16 22x22 24x24 32x32 48x48 256x256; do
53       install -Dm644 browser/branding/official/default${i/x*/}.png \
54         "$pkgdir/usr/share/icons/hicolor/$i/apps/firefox.png"
55   done
57   install -Dm644 "$srcdir/firefox.desktop" \
58     "$pkgdir/usr/share/applications/firefox.desktop"
60   rm -rf "$pkgdir"/usr/lib/firefox/{dictionaries,hyphenation}
61   ln -sf /usr/share/hunspell "$pkgdir/usr/lib/firefox/dictionaries"
62   ln -sf /usr/share/hyphen "$pkgdir/usr/lib/firefox/hyphenation"
64   # We don't want the development stuff
65   rm -r "$pkgdir"/usr/{include,lib/firefox-devel,share/idl}
67   #workaround for now
68   #https://bugzilla.mozilla.org/show_bug.cgi?id=658850
69   ln -sf firefox "$pkgdir/usr/lib/firefox/firefox-bin"