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 153 lines (132 sloc) 5.59 KB
#!/bin/env beesh
#export BEE_TMP_TMPDIR=/scratch/local2 BEE_TMP_BUILDROOT=/scratch/local2/bee-root BEE_MAKEFLAGS='-j80'
# BEE_VERSION thunderbird-128.4.3-0
#SRCURL[0]="https://ftp.mozilla.org/pub/thunderbird/releases/${PKGVERSION}esr/source/thunderbird-${PKGVERSION}esr.source.tar.xz"
SRCURL[0]="https://beehive.molgen.mpg.de/2334b343b9bb5a2f002c086e6e2012a6/thunderbird-128.4.3esr.source.tar.xz"
# build_in_sourcedir
mee_configure() {
# next build check what is needed
p=/pkg/node-20.13.1-0/profile; [ -e $p ] && . $p
p=/pkg/rustc-1.80.0-0/profile; [ -e $p ] && . $p
cat > ${S}/mozconfig <<CONF
ac_add_options --prefix=${PREFIX}
ac_add_options --enable-application=comm/mail
ac_add_options --enable-bootstrap
ac_add_options --disable-updater
ac_add_options --disable-crashreporter
ac_add_options --disable-tests
ac_add_options --enable-official-branding
ac_add_options --disable-debug
ac_add_options --disable-debug-symbols
ac_add_options --disable-tests
ac_add_options --enable-optimize
ac_add_options --enable-strip
ac_add_options --enable-install-strip
ac_add_options --enable-rust-simd
ac_add_options --disable-necko-wifi
ac_add_options --with-distribution-id=MarIuX
ac_add_options --without-wasm-sandboxed-libraries
MOZ_BUILD_FLAGS="${BEE_MAKEFLAGS} -w"
mk_add_options MOZ_OBJDIR=$B
CONF
export MOZBUILD_STATE_PATH=${B}/mozbuild
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none
}
mee_build () {
export CARGO_HOME=$B/.cargo
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none
start_cmd ${S}/mach build
}
mee_build_post() {
# create menu entry
cat >${B}/${PKGNAME}.desktop <<-EOF
[Desktop Entry]
Version=1.0
Name=Thunderbird Mail
GenericName=Mail Client
Comment=Send and receive mail with Thunderbird
Exec=${PKGNAME} %u
TryExec=${PKGNAME}
Icon=${PKGNAME}
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);
// show Name and email-adresse
pref("mail.showCondensedAddresses" , false);
// if FROM Header and Header SENDER there show both
pref("mailnews.headers.showSender" , true);
//test for Aw:Re:AW:
pref("mailnews.localizedRe", "AW,Aw,Antwort,Antw");
//disable telemetry
pref("dom.security.unexpected_system_load_telemetry_enabled",false);
pref("network.trr.confirmation_telemetry_enabled",false);
pref("privacy.trackingprotection.origin_telemetry.enabled",false);
pref("telemetry.origin_telemetry_test_mode.enabled",false);
pref("toolkit.telemetry.archive.enabled",false);
pref("toolkit.telemetry.bhrPing.enabled",false);
pref("toolkit.telemetry.ecosystemtelemetry.enabled",false);
pref("toolkit.telemetry.firstShutdownPing.enabled",false);
pref("toolkit.telemetry.newProfilePing.enabled",false);
pref("toolkit.telemetry.shutdownPingSender.enabled",false);
pref("toolkit.telemetry.shutdownPingSender.enabledFirstSession",false);
pref("toolkit.telemetry.updatePing.enabled",false);
pref("toolkit.telemetry.unified",false);
pref("toolkit.telemetry.enabled",false);
pref("datareporting.healthreport.uploadEnabled",false);
pref("datareporting.policy.dataSubmissionEnabled",false);
pref("toolkit.telemetry.archive.enabled",false);
pref("toolkit.telemetry.prompted",2);
pref("toolkit.telemetry.reportingpolicy.firstRun",false);
pref("toolkit.telemetry.server","");
pref("toolkit.telemetry.updatePing.enabled",false);
//Browser disable popup
//Number seems to be identical to prevent popup
pref("app.donation.eoy.version.viewed",100);
pref("app.donation.eoy.url"," ");
EOF2
}
mee_install() {
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none && 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}
start_cmd mkdir -p ${D}${BINDIR}
start_cmd ln -s ${LIBDIR}/mariux64/mozilla-launcher ${D}${BINDIR}/${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}/${PKGNAME}/chrome/icons/default/default${size}.png ${destdir}/${PKGNAME}.png
done
# install menu-entry
start_cmd mkdir -p ${D}${DATADIR}/applications
start_cmd desktop-file-install --dir ${D}${DATADIR}/applications ${B}/${PKGNAME}.desktop
# install ldap addressbook
start_cmd install -m 0644 ${B}/all-molgen-ldap.js ${D}${LIBDIR}/${PKGNAME}/defaults/pref
start_cmd install -m 0644 ${B}/molgen-default-prefs.js ${D}${LIBDIR}/${PKGNAME}/defaults/pref
#exit 0
}