Skip to content

Thunderbird: New Revision #1212

Merged
merged 1 commit into from
Aug 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 30 additions & 26 deletions thunderbird.be0
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

# BEE_VERSION thunderbird-60.8.0-0
# BEE_VERSION thunderbird-60.8.0-1

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

Expand Down Expand Up @@ -41,9 +41,9 @@ mee_build () {

mee_build_post() {

# create menu entry
# create menu entry

cat >${B}/thunderbird.desktop <<-EOF
cat >${B}/thunderbird.desktop <<-EOF
[Desktop Entry]
Version=1.0
Name=Thunderbird Mail
Expand All @@ -56,11 +56,11 @@ mee_build_post() {
Type=Application
MimeType=message/rfc822;x-scheme-handler/mailto;
StartupNotify=true
Categories=Network;Email;
Categories=Office;Network;
EOF

# create molgen ldap address book..
cat >${B}/all-molgen-ldap.js <<-EOF
# create molgen ldap address book..
cat >${B}/all-molgen-ldap.js <<EOF1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the minus, the leading tabs are not stripped. From Here Documents in the GNU Bash manual:

If the redirection operator is <<-, then all leading tab characters
are stripped from input lines and the line containing delimiter. This
allows here-documents within shell scripts to be indented in a natural
fashion.

pref("ldap_2.autoComplete.directoryServer", "ldap_2.servers.MOLGEN_pre");
pref("ldap_2.autoComplete.useDirectory", true);
pref("ldap_2.servers.MOLGEN_pre.auth.dn", "");
Expand All @@ -70,38 +70,42 @@ mee_build_post() {
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
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}
start_cmd install -d ${D}${LIBDIR}/mariux64
start_cmd rm ${D}${BINDIR}/${PKGNAME}

cat >${D}${LIBDIR}/mariux64/${PKGNAME}<<-EOF
cat >${D}${LIBDIR}/mariux64/${PKGNAME}<<EOF3
NSS_SDB_USE_CACHE=1 exec "${LIBDIR}/${PKGNAME}/${PKGNAME}" "\$@"
EOF
chmod 755 ${D}${LIBDIR}/mariux64/${PKGNAME}

# install official icon in all sizes
EOF3
start_cmd chmod 755 ${D}${LIBDIR}/mariux64/${PKGNAME}

for size in 16 22 24 32 48 256 ; do
destdir=${D}${DATADIR}/hicolor/${size}x${size}/apps
# install official icon in all sizes

start_cmd mkdir -p ${destdir}
start_cmd ln -s ${LIBDIR}/thunderbird/chrome/icons/default/default${size}.png ${destdir}/thunderbird.png
done
for size in 16 22 24 32 48 256 ; do
destdir=${D}${DATADIR}/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
# install menu-entry

start_cmd mkdir -p ${D}${DATADIR}/applications
start_cmd desktop-file-install --dir ${D}${DATADIR}/applications ${B}/thunderbird.desktop
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
# 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
}