Skip to content
Permalink
b7ef5b9c45
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 91 lines (71 sloc) 2.99 KB
#!/bin/env beesh
#export BEE_TMP_TMPDIR=/dev/shm BEE_TMP_BUILDROOT=/dev/shm/bee-root BEE_MAKEFLAGS='-j80'
# BEE_VERSION thunderbird-legacy-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() {
#}
#mee_build () {
#}
mee_build_post() {
# create menu entry
cat >${B}/${PKGNAME}.desktop <<-EOF
[Desktop Entry]
Version=1.0
Name=Thunderbird Legacy 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);
EOF2
}
mee_install() {
start_cmd mkdir -p ${D}${LIBDIR}/${PKGNAME}
start_cmd cd ${D}${LIBDIR}/${PKGNAME}
start_cmd tar xpf /src/mariux/beeroot/packages/thunderbird-68.12.1-0.x86_64.bee.tar.bz2 /usr/lib/thunderbird --strip-components=3
}
mee_install_post() {
start_cmd install -d ${D}${LIBDIR}/mariux64
cat >${D}${LIBDIR}/mariux64/${PKGNAME}<<EOF3
NSS_SDB_USE_CACHE=1 exec "${LIBDIR}/${PKGNAME}/thunderbird" "\$@"
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
}