Skip to content

Commit

Permalink
Merge pull request #43 from mariux64/add-thunderbird-45.2.0
Browse files Browse the repository at this point in the history
Thunderbird: Add Thunderbird Version 45.2.0
  • Loading branch information
donald committed Jul 8, 2016
2 parents 3bca8a2 + d70e4a1 commit 9bc2f28
Showing 1 changed file with 95 additions and 0 deletions.
95 changes: 95 additions & 0 deletions thunderbird-0.bee
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
#!/bin/env beesh

#export BEE_TMP_TMPDIR=/dev/shm BEE_TMP_BUILDROOT=/dev/shm/bee-root BEE_MAKEFLAGS='-j80'

bee_version thunderbird-45.2.0-0

SRCURL[0]="https://ftp.mozilla.org/pub/thunderbird/releases/${PKGVERSION}/source/thunderbird-${PKGVERSION}.source.tar.xz"

# build_in_sourcedir

mee_configure() {
bee_configure \
--enable-application=mail \
--without-system-nspr \
--without-system-icu \
--disable-necko-wifi \
--disable-installer \
--disable-updater \
--disable-dbus \
--disable-crashreporter \
--enable-startup-notification \
--enable-canvas \
--enable-svg \
--disable-tests \
--with-pthreads \
--enable-official-branding \
--disable-debug \
--disable-tests \
--enable-calendar \
--enable-optimize \
--enable-strip \
--enable-install-strip \
--disable-dbus \
--enable-gio \
--enable-safe-browsing \
--enable-url-classifier
}

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_post() {
install -d ${D}${LIBDIR}/mariux64
mv ${D}${BINDIR}/${PKGNAME} ${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 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
}

0 comments on commit 9bc2f28

Please sign in to comment.