mk_source_dir  "${SOURCE_DIRECTORY}"  &&
cd  "${SOURCE_DIRECTORY}"             &&
unpack_file  ''                       &&
cd  comm-*                            &&

patch -p1 < $SPELL_DIRECTORY/0001-remove-version-number-from-thunderbird-s-installatio.patch &&

cp -v "${SPELL_DIRECTORY}"/mozconfig .mozconfig &&

if [[ "$THUNDERBIRD_STRIP" == "y" ]]; then
   sed -i '27iac_add_options --enable-strip' .mozconfig
fi &&

if [[ $THUNDERBIRD_OFFICIAL == y ]]; then
  sed -i '27iac_add_options --enable-official-branding' .mozconfig || return 1
fi
