blob: 606c83342ab1cdd9ec2e5af9e522e6e3115a4075 (
plain)
1 # Description: The Mozilla Firefox browser
2 # URL: http://www.mozilla.com/firefox/
3 # Maintainer: Fredrik Rinnestam, fredrik at crux dot nu
4 # Depends on: nss, libidl, gtk, python, alsa-lib, yasm, mesa3d
5
6 name=firefox
7 version=22.0
8 release=1
9 source=(ftp://ftp.mozilla.org/pub/firefox/releases/$version/source/firefox-$version.source.tar.bz2
10 mozconfig firefox.desktop bz722975.patch)
11
12 build() {
13 export MOZ_CO_PROJECT=browser
14 export BUILD_OFFICIAL=1
15 export MOZILLA_OFFICIAL=1
16 export MOZILLA_FIVE_HOME=/usr/lib/firefox
17
18 cd mozilla-release
19 patch -p1 -i $SRC/bz722975.patch
20
21 export CFLAGS="$CFLAGS -mno-avx"
22 sed -e "s/#CFLAGS#/$CFLAGS/" $SRC/mozconfig > .mozconfig
23 ./configure
24
25 mkdir $SRC/mozilla-release/js/src/.deps
26
27 make
28
29 install -d \
30 $PKG$MOZILLA_FIVE_HOME \
31 $PKG/usr/bin \
32 $PKG/usr/share/idl/firefox \
33 $PKG/usr/include/firefox
34
35 cp -rL dist/bin/* $PKG$MOZILLA_FIVE_HOME
36 ln -s /usr/lib/firefox/firefox $PKG/usr/bin/firefox
37
38 # devel stuff
39 cp -frL dist/idl/* $PKG/usr/share/idl/firefox/
40 cp -frL dist/include/* $PKG/usr/include/firefox/
41
42 install -d $PKG/etc/ld.so.conf.d
43 echo "/usr/lib/$name" > $PKG/etc/ld.so.conf.d/$name.conf
44
45 # cleanup
46 find $PKG -name .mkdir.done -delete
47
48 # desktop stuff
49 mkdir -p $PKG/usr/share/pixmaps
50 ln -s /usr/lib/firefox/browser/chrome/browser/content/branding/icon48.png $PKG/usr/share/pixmaps/firefox_default48.png
51 install -D -m 0644 $SRC/firefox.desktop $PKG/usr/share/applications/firefox.desktop
52 }
|