-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from mariux64/add-firefox_esr
firefox: Add Firefox ESR version 45
- Loading branch information
Showing
1 changed file
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
#!/bin/env beesh | ||
|
||
bee_version firefox_esr-45.2.0-0 | ||
|
||
#export BEE_TMP_TMPDIR=/dev/shm BEE_TMP_BUILDROOT=/dev/shm/bee-root BEE_MAKEFLAGS='-j80' | ||
|
||
SRCURL[0]="https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${PKGVERSION}${PKGEXTRANAME}/source/firefox-${PKGVERSION}${PKGEXTRANAME}.source.tar.xz" | ||
|
||
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}/firefoxesr.desktop <<-EOF | ||
[Desktop Entry] | ||
Version=1.0 | ||
Name=Firefox-ESR-${PKGVERSION[1]} | ||
GenericName=Web Browser | ||
Comment=Surf the World Wide Web | ||
Exec=firefoxesr${PKGVERSION[1]} -ProfileManager %u | ||
Icon=firefox | ||
Terminal=false | ||
Type=Application | ||
StartupNotify=true | ||
Categories=Network;WebBrowser; | ||
EOF | ||
} | ||
|
||
|
||
mee_install_post() { | ||
if [ "${PKGEXTRANAME}" = "esr" ] ; then | ||
mv -v "${D}${BINDIR}/firefox" "${D}${BINDIR}/firefox${PKGEXTRANAME}${PKGVERSION[1]}" | ||
else | ||
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 | ||
fi | ||
|
||
# install menu-entry | ||
|
||
start_cmd mkdir -p ${D}${DATADIR}/applications | ||
start_cmd desktop-file-install --dir ${D}${DATADIR}/applications ${B}/firefoxesr.desktop | ||
|
||
mkdir -pv ${D}/usr/local/bin | ||
|
||
cat > ${D}/usr/local/bin/sbportal <<-EOF | ||
#!/bin/bash | ||
|
||
export MOZ_APP_LAUNCHER=firefox | ||
|
||
export XAUTHORITY=\${XAUTHORITY:-\$HOME/.Xauthority} | ||
export ICEAUTHORITY=\${ICEAUTHORITY:-\$HOME/.ICEauthority} | ||
export HOME=/scratch/local/sap-firefoxesr-\${USER}-home | ||
|
||
mkdir -p \${HOME} | ||
chmod 0700 \${HOME} | ||
|
||
exec firefox${PKGEXTRANAME}${PKGVERSION[1]} -no-remote https://sbportal.mpg.de | ||
EOF | ||
|
||
chmod 755 ${D}/usr/local/bin/sbportal | ||
} |