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