Skip to content
Permalink
3e764aeff1
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 96 lines (74 sloc) 2.87 KB
#!/bin/env beesh
#export BEE_TMP_TMPDIR=/dev/shm BEE_TMP_BUILDROOT=/dev/shm/bee-root BEE_MAKEFLAGS='-j80'
# BEE_VERSION firefox-55.0.3-0
SRCURL[0]="https://ftp.mozilla.org/pub/firefox/releases/${PKGVERSION}/source/firefox-${PKGVERSION}.source.tar.xz"
BEE_BUILDTYPE=autotools
mee_configure() {
"${S}"/configure \
--prefix=/usr \
--enable-application=browser \
--disable-necko-wifi \
--enable-official-branding \
--without-system-icu \
--without-system-nspr \
--disable-dbus \
--disable-crashreporter \
--disable-tests \
--enable-optimize \
--enable-safe-browsing
}
mee_build_post() {
# create menu entry
cat >${B}/firefox.desktop <<-EOF
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Firefox
GenericName=Web Browser
Comment=Surf the World Wide Web
Exec=firefox %u
Icon=firefox
Terminal=false
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
Categories=Network;WebBrowser;
EOF
}
mee_install_post() {
start_cmd install -d ${D}${LIBDIR}/mariux64
start_cmd mv ${D}${BINDIR}/${PKGNAME} ${D}${LIBDIR}/mariux64/${PKGNAME}
# install official icon in all sizes
for size in 16 22 24 32 48 256 ; do
srcdir=${S}/browser/branding/official
destdir=${D}${DATADIR}/icons/hicolor/${size}x${size}/apps
start_cmd mkdir -p ${destdir}
start_cmd install -m 644 ${srcdir}/default${size}.png ${destdir}/firefox.png
done
# install menu-entry
start_cmd mkdir -p ${D}${DATADIR}/applications
start_cmd desktop-file-install --dir ${D}${DATADIR}/applications ${B}/firefox.desktop
cat <<-EOF >${D}${LIBDIR}/firefox-${PKGVERSION}/defaults/pref/mariux64.js
pref("storage.nfs_filesystem", true);
EOF
cat <<-EOF >${D}${LIBDIR}/firefox-${PKGVERSION}/defaults/pref/autoconfig.js
// Any comment. You must start the file with a comment!
pref("general.config.filename", "default_config_mariux.cfg");
pref("general.config.obscure_value", 0);
EOF
cat <<-EOF >${D}${LIBDIR}/firefox-${PKGVERSION}/default_config_mariux.cfg
// Any comment. You must start the file with a comment!
pref("network.captive-portal-service.enabled",false);
// Don't show WhatsNew on first run after every update
pref("browser.startup.homepage_override.mstone","ignore");
// Set default homepage - users can change
// Requires a complex preference
defaultPref("browser.startup.homepage","data:text/plain,browser.startup.homepage=http://twiki.molgen.mpg.de/foswiki/Main/WebHome");
// Don't ask to install the Flash plugin
pref("plugins.notifyMissingFlash", false);
// Disable health reporter
lockPref("datareporting.healthreport.service.enabled", false);
// Disable all data upload (Telemetry and FHR)
lockPref("datareporting.policy.dataSubmissionEnabled", false);
EOF
}