Skip to content
Permalink
master
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 115 lines (93 sloc) 3.64 KB
#!/bin/env beesh
#export BEE_TMP_TMPDIR=/dev/shm BEE_TMP_BUILDROOT=/dev/shm/bee-root BEE_MAKEFLAGS='-j80'
# BEE_VERSION thunderbird-68.12.1-0
# SRCURL[0]="https://ftp.mozilla.org/pub/thunderbird/releases/${PKGVERSION}/source/thunderbird-${PKGVERSION}.source.tar.xz"
SRCURL[0]="https://beehive.molgen.mpg.de/8d7484bae39e4a5afbae15abe00baf1b/thunderbird-68.12.1.source.tar.xz"
# build_in_sourcedir
mee_configure() {
p=/pkg/node-14.17.1-0/profile; [ -e $p ] && . $p
p=/pkg/rustc-1.41.0-0/profile; [ -e $p ] && . $p
p=/pkg/python-2.7.16-0/profile; [ -e $p ] && . $p
cat > ${S}/mozconfig <<CONF
ac_add_options --prefix=${PREFIX}
ac_add_options --enable-application=comm/mail
ac_add_options --without-system-nspr
ac_add_options --disable-necko-wifi
ac_add_options --disable-updater
ac_add_options --disable-crashreporter
ac_add_options --enable-startup-notification
ac_add_options --disable-tests
ac_add_options --enable-official-branding
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --enable-calendar
ac_add_options --enable-optimize
ac_add_options --enable-strip
ac_add_options --enable-install-strip
mk_add_options MOZ_BUILD_FLAGS="${BEE_MAKEFLAGS} -w"
mk_add_options MOZ_OBJDIR=$B
CONF
export MOZBUILD_STATE_PATH=${B}/mozbuild
}
mee_build () {
export CARGO_HOME=$B/.cargo
start_cmd ${S}/mach build
}
mee_build_post() {
# create menu entry
cat >${B}/thunderbird.desktop <<-EOF
[Desktop Entry]
Version=1.0
Name=Thunderbird Mail
GenericName=Mail Client
Comment=Send and receive mail with Thunderbird
Exec=thunderbird %u
TryExec=thunderbird
Icon=thunderbird
Terminal=false
Type=Application
MimeType=message/rfc822;x-scheme-handler/mailto;
StartupNotify=true
Categories=Office;Network;
EOF
# create molgen ldap address book..
cat >${B}/all-molgen-ldap.js <<EOF1
pref("ldap_2.autoComplete.directoryServer", "ldap_2.servers.MOLGEN_pre");
pref("ldap_2.autoComplete.useDirectory", true);
pref("ldap_2.servers.MOLGEN_pre.auth.dn", "");
pref("ldap_2.servers.MOLGEN_pre.auth.saslmech", "");
pref("ldap_2.servers.MOLGEN_pre.description", "MOLGEN (preconfigured)");
pref("ldap_2.servers.MOLGEN_pre.filename", "ldap.mab");
pref("ldap_2.servers.MOLGEN_pre.maxHits", 100);
pref("ldap_2.servers.MOLGEN_pre.uri", "ldap://ldap.molgen.mpg.de/dc=addressbook,dc=apps,dc=molgen,dc=mpg,dc=DE??sub?(objectclass=*)");
pref("ldap_2.servers.MOLGEN_pre.autoComplete.filterTemplate", "(|(mail=*%v*)(displayName=*%v*)(givenName=*%v*)(sn=*%v*)(cn=*%v*))");
EOF1
# create molgen default prefs
cat >${B}/molgen-default-prefs.js <<EOF2
pref("storage.nfs_filesystem", true);
pref("nglayout.enable_drag_images", false);
EOF2
}
mee_install() {
start_cmd make install DESTDIR=${D}
}
mee_install_post() {
start_cmd install -d ${D}${LIBDIR}/mariux64
start_cmd rm ${D}${BINDIR}/${PKGNAME}
cat >${D}${LIBDIR}/mariux64/${PKGNAME}<<EOF3
NSS_SDB_USE_CACHE=1 exec "${LIBDIR}/${PKGNAME}/${PKGNAME}" "\$@"
EOF3
start_cmd chmod 755 ${D}${LIBDIR}/mariux64/${PKGNAME}
# install official icon in all sizes
for size in 16 22 24 32 48 256 ; do
destdir=${D}${DATADIR}/icons/hicolor/${size}x${size}/apps
start_cmd mkdir -p ${destdir}
start_cmd ln -s ${LIBDIR}/thunderbird/chrome/icons/default/default${size}.png ${destdir}/thunderbird.png
done
# install menu-entry
start_cmd mkdir -p ${D}${DATADIR}/applications
start_cmd desktop-file-install --dir ${D}${DATADIR}/applications ${B}/thunderbird.desktop
# install ldap addressbook
start_cmd install -m 0644 ${B}/all-molgen-ldap.js ${D}${LIBDIR}/thunderbird/defaults/pref
start_cmd install -m 0644 ${B}/molgen-default-prefs.js ${D}${LIBDIR}/thunderbird/defaults/pref
}