From 7faf234057aea34cda9c206a27f91bb739d36df6 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 6 Jul 2016 11:58:42 +0200 Subject: [PATCH] firefox: Add version 47.0.1 Copy the bee file from Firefox 43 and convert it to a versionless bee file. Also fix the whitespace issues. Note, system fonts are needed for Chinese characters. Firefox depends on Autoconf 2.13 for build. --- firefox-0.bee | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100755 firefox-0.bee diff --git a/firefox-0.bee b/firefox-0.bee new file mode 100755 index 000000000..98cef90d6 --- /dev/null +++ b/firefox-0.bee @@ -0,0 +1,70 @@ +#!/bin/env beesh + +#export BEE_TMP_TMPDIR=/dev/shm BEE_TMP_BUILDROOT=/dev/shm/bee-root BEE_MAKEFLAGS='-j80' + +bee_version firefox-47.0.1-0 + +SRCURL[0]="https://ftp.mozilla.org/pub/firefox/releases/${PKGVERSION}/source/firefox-${PKGVERSION}.source.tar.xz" + +BEE_BUILDTYPE=autotools + +mee_configure() { + bee_configure \ + --enable-application=browser \ + --disable-necko-wifi \ + --enable-official-branding \ + --without-system-icu \ + --without-system-nspr \ + --disable-dbus \ + --disable-update \ + --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 +}