summaryrefslogtreecommitdiff
path: root/firefox/Pkgfile
blob: b7df817169eecefbde080cc8822bdb7f9b180191 (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=21.0
    8 release=1
    9 source=(ftp://ftp.mozilla.org/pub/firefox/releases/$version/source/firefox-$version.source.tar.bz2
   10         mozconfig)
   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     export CFLAGS="$CFLAGS -mno-avx"
   20     sed -e "s/#CFLAGS#/$CFLAGS/" $SRC/mozconfig > .mozconfig
   21     ./configure
   22 
   23     mkdir $SRC/mozilla-release/js/src/.deps
   24 
   25     make
   26 
   27     install -d \
   28         $PKG$MOZILLA_FIVE_HOME \
   29         $PKG/usr/bin \
   30         $PKG/usr/share/idl/firefox \
   31         $PKG/usr/include/firefox
   32 
   33     cp -rL dist/bin/* $PKG$MOZILLA_FIVE_HOME
   34     ln -s /usr/lib/firefox/firefox $PKG/usr/bin/firefox
   35 
   36     # devel stuff
   37     cp -frL dist/idl/* $PKG/usr/share/idl/firefox/
   38     cp -frL dist/include/* $PKG/usr/include/firefox/
   39 
   40     install -d $PKG/etc/ld.so.conf.d
   41     echo "/usr/lib/$name" > $PKG/etc/ld.so.conf.d/$name.conf
   42 
   43     # cleanup
   44     find $PKG -name .mkdir.done -delete
   45 }

Generated by cgit