mk_source_dir "${SOURCE_DIRECTORY}" &&
cd "${SOURCE_DIRECTORY}" &&
verify_file &&

7z x "${SOURCE_CACHE}/${SOURCE}" > /dev/null &&

patch -p0 < "${SPELL_DIRECTORY}/libvpx.patch" &&

sedit '/MOZ_ASSERT/d' mfbt/Util.h

# resurrect permissions not stored by 7zip
find . -type d -exec chmod 755 '{}' \; &&
find . -type f -exec chmod 644 '{}' \; &&
find build/autoconf -type f -not -name '*.m4' -exec chmod +x '{}' \; &&
chmod +x python/mozbuild/mozbuild/mozconfig_loader
