Skip to content

Add Firefox 47.0.1 #34

Merged
merged 2 commits into from
Jul 6, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions firefox-0.bee
Original file line number Diff line number Diff line change
@@ -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
}
43 changes: 43 additions & 0 deletions fonts-wqy-zenhei-0.bee
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/usr/bin/env beesh

bee_version fonts-wqy-zenhei-0.9.45-0

SRCURL[0]="http://http.debian.net/debian/pool/main/f/fonts-wqy-zenhei/fonts-wqy-zenhei_${PKGVERSION}.orig.tar.gz"

# PATCHURL+=()

# EXCLUDE+=()

# build_in_sourcedir

# sourcesubdir_append src

#mee_extract() {
# bee_extract "${@}"
#}

mee_extract_post() {
rm ${S}/Makefile
}

#mee_patch() {
# bee_patch "${@}"
#}

#mee_configure() {
# bee_configure
#}

#mee_build() {
# bee_build
#}

mee_install() {
install -d -v --mode=755 ${D}/usr/share/fonts/wenquanyi
install -d -v --mode=755 ${D}/usr/share/fonts/wenquanyi/wqy-zenhei
cp -av ${S}/wqy-zenhei.ttc ${D}/usr/share/fonts/wenquanyi/wqy-zenhei
mkdir -pv ${D}/usr/share/fontconfig/conf.avail
cp -av ${S}/44-wqy-zenhei.conf ${D}/usr/share/fontconfig/conf.avail/
mkdir -p ${D}/etc/fonts/conf.d
ln -s ${D}/usr/share/fontconfig/conf.avail/44-wqy-zenhei.conf ${D}/etc/fonts/conf.d
}