cd  "${SOURCE_DIRECTORY}"/comm-*  &&
THUNDERBIRD_HOME="${INSTALL_ROOT}"/usr/lib/thunderbird  &&

make -f client.mk install &&

#
# Create symlink from NSS Root CA store, if it exists.  NSS requires this
# to be in the same directory as the current application binary.  See:
# http://www.mozilla.org/projects/security/pki/nss/loadable_certs.html
# https://bugzilla.mozilla.org/show_bug.cgi?id=128290
# Only create if $THUNDERBIRD_HOME/libnssckbi.so does not exist or is already a
# symlink.
#
if  test  -f   "${INSTALL_ROOT}"/usr/lib/libnssckbi.so;  then
  if  !  test  -f   "${THUNDERBIRD_HOME}"/libnssckbi.so  ||
         test  -h   "${THUNDERBIRD_HOME}"/libnssckbi.so; then
    ln -sf "${TRACK_ROOT}"/usr/lib/libnssckbi.so  "${THUNDERBIRD_HOME}"/libnssckbi.so
  fi
fi
