Skip to content
Permalink
0af09a4ae7
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 104 lines (84 sloc) 3.15 KB
#!/bin/env beesh
#export BEE_TMP_TMPDIR=/dev/shm BEE_TMP_BUILDROOT=/dev/shm/bee-root BEE_MAKEFLAGS='-j80'
# BEE_VERSION thunderbird-52.8.0-0
SRCURL[0]="https://ftp.mozilla.org/pub/thunderbird/releases/${PKGVERSION}/source/thunderbird-${PKGVERSION}.source.tar.xz"
# build_in_sourcedir
mee_configure() {
start_cmd ${S}/configure \
--prefix=${PREFIX} \
--enable-application=mail \
--without-system-nspr \
--without-system-icu \
--disable-necko-wifi \
--disable-updater \
--disable-dbus \
--disable-crashreporter \
--enable-startup-notification \
--disable-tests \
--with-pthreads \
--enable-official-branding \
--disable-debug \
--disable-tests \
--enable-calendar \
--enable-optimize \
--enable-strip \
--enable-install-strip \
--enable-gio \
--enable-safe-browsing \
--enable-url-classifier
}
mee_build () {
start_cmd make ${BEE_MAKEFLAGS}
}
mee_build_post() {
# create menu entry
cat >${B}/thunderbird.desktop <<-EOF
[Desktop Entry]
Version=1.0
Name=Thunderbird
GenericName=Email
Comment=Send and Recieve Email
Exec=thunderbird %u
TryExec=thunderbird
Icon=thunderbird
Terminal=false
Type=Application
MimeType=message/rfc822;x-scheme-handler/mailto;
StartupNotify=true
Categories=Network;Email;
EOF
# create molgen ldap address book..
cat >${B}/all-molgen-ldap.js <<-EOF
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*))");
pref("storage.nfs_filesystem", true);
EOF
}
mee_install() {
start_cmd make install DESTDIR=${D}
}
mee_install_post() {
start_cmd install -d ${D}${LIBDIR}/mariux64
start_cmd mv ${D}${BINDIR}/${PKGNAME} ${D}${LIBDIR}/mariux64/${PKGNAME}
# remove remove unneeded thunderbird-devel
rm -r ${D}${LIBDIR}/thunderbird-devel-${PKGVERSION}
# 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 install -m 644 ${S}/other-licenses/branding/thunderbird/mailicon${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 mkdir -p ${D}${LIBDIR}/thunderbird-${PKGVERSION}/defaults/pref
start_cmd install -m 0644 ${B}/all-molgen-ldap.js ${D}${LIBDIR}/thunderbird-${PKGVERSION}/defaults/pref
}