2018-03-03 15:30:54 +01:00
|
|
|
# Description: The Mozilla Firefox browser with Alsa support
|
2017-04-19 18:36:59 +02:00
|
|
|
# URL: https://www.mozilla.com/firefox/
|
2010-05-13 23:34:28 +02:00
|
|
|
# Maintainer: Fredrik Rinnestam, fredrik at crux dot nu
|
2018-06-26 16:11:13 +02:00
|
|
|
# Depends on: nss, autoconf-2.13, unzip, zip, libidl, gtk, gtk3, python, alsa-lib, xorg-libxt, yasm, mesa3d, rust, clang
|
2014-02-04 17:58:31 +01:00
|
|
|
|
2006-02-23 18:10:28 +01:00
|
|
|
name=firefox
|
2018-06-26 16:11:13 +02:00
|
|
|
version=61.0
|
2015-10-19 21:06:25 +02:00
|
|
|
release=1
|
2018-05-08 23:28:54 +02:00
|
|
|
source=(https://ftp.mozilla.org/pub/firefox/releases/$version/source/firefox-$version.source.tar.xz
|
2018-03-13 16:57:38 +01:00
|
|
|
firefox.desktop)
|
2014-02-04 17:58:31 +01:00
|
|
|
|
2006-02-23 18:10:28 +01:00
|
|
|
build() {
|
2018-05-17 20:46:03 +02:00
|
|
|
cd firefox-$version
|
2017-01-23 23:26:07 +01:00
|
|
|
|
2014-02-04 17:58:31 +01:00
|
|
|
cat <<- EOF > .mozconfig
|
2016-08-02 19:08:15 +02:00
|
|
|
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-shared
|
|
|
|
ac_add_options --prefix=/usr
|
|
|
|
ac_add_options --enable-default-toolkit=cairo-gtk3
|
|
|
|
ac_add_options --with-system-jpeg
|
|
|
|
ac_add_options --with-system-zlib
|
|
|
|
ac_add_options --with-system-png
|
|
|
|
ac_add_options --with-system-nspr
|
|
|
|
ac_add_options --with-system-nss
|
|
|
|
ac_add_options --enable-system-ffi
|
|
|
|
ac_add_options --enable-system-pixman
|
|
|
|
ac_add_options --enable-system-sqlite
|
2018-03-13 16:57:38 +01:00
|
|
|
#This is the alsa port
|
2017-03-06 23:48:22 +01:00
|
|
|
ac_add_options --enable-alsa
|
2018-03-09 16:45:09 +01:00
|
|
|
ac_add_options --disable-pulseaudio
|
2016-08-02 19:08:15 +02:00
|
|
|
ac_add_options --with-pthreads
|
|
|
|
ac_add_options --enable-official-branding
|
|
|
|
ac_add_options --with-distribution-id=nu.crux
|
|
|
|
ac_add_options --enable-extensions=default,-gnomevfs
|
|
|
|
ac_add_options --disable-tests
|
|
|
|
ac_add_options --disable-dbus
|
|
|
|
ac_add_options --disable-debug
|
|
|
|
ac_add_options --disable-updater
|
|
|
|
ac_add_options --disable-crashreporter
|
|
|
|
ac_add_options --disable-necko-wifi
|
|
|
|
ac_add_options --disable-gconf
|
2013-12-10 18:07:37 +01:00
|
|
|
EOF
|
2011-03-22 01:19:59 +01:00
|
|
|
|
2018-03-03 15:30:54 +01:00
|
|
|
./mach build
|
|
|
|
DESTDIR=$PKG ./mach install
|
2016-08-02 19:08:15 +02:00
|
|
|
|
|
|
|
mkdir -p $PKG/usr/share/pixmaps
|
|
|
|
ln -s /usr/lib/firefox/browser/chrome/icons/default/default48.png $PKG/usr/share/pixmaps/firefox_default48.png
|
|
|
|
install -D -m 0644 $SRC/firefox.desktop $PKG/usr/share/applications/firefox.desktop
|
2016-09-21 19:10:20 +02:00
|
|
|
# Remove crap
|
2018-03-03 15:30:54 +01:00
|
|
|
rm $PKG/usr/lib/firefox/browser/features/{firefox@getpocket.com.xpi,webcompat@mozilla.org.xpi,aushelper@mozilla.org.xpi,screenshots@mozilla.org.xpi}
|
|
|
|
rm $PKG/usr/lib/firefox/removed-files
|
2016-09-21 19:10:20 +02:00
|
|
|
|
|
|
|
mkdir -p $PKG/etc/revdep.d
|
|
|
|
echo "/usr/lib/firefox" > $PKG/etc/revdep.d/firefox
|
2006-02-23 18:10:28 +01:00
|
|
|
}
|