summaryrefslogtreecommitdiffstats
path: root/http/palemoon/PRE_BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'http/palemoon/PRE_BUILD')
-rwxr-xr-xhttp/palemoon/PRE_BUILD15
1 files changed, 15 insertions, 0 deletions
diff --git a/http/palemoon/PRE_BUILD b/http/palemoon/PRE_BUILD
new file mode 100755
index 0000000000..282d79ce03
--- /dev/null
+++ b/http/palemoon/PRE_BUILD
@@ -0,0 +1,15 @@
+mk_source_dir "${SOURCE_DIRECTORY}" &&
+cd "${SOURCE_DIRECTORY}" &&
+verify_file &&
+
+7z x "${SOURCE_CACHE}/${SOURCE}" > /dev/null &&
+
+# resurrect permissions not stored by 7zip
+find . -type d -exec chmod 755 '{}' \; &&
+find . -type f -exec chmod 644 '{}' \; &&
+find . -name '*.sh' -exec chmod +x {} \; &&
+chmod -R +x build/autoconf/* python/* &&
+
+if is_depends_enabled $SPELL cairo; then
+ patch -p0 < "${SPELL_DIRECTORY}/cairo-system.patch"
+fi