Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/webkit2gtk/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-05-17 14:51:26 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2019-05-17 14:51:26 +0200
commit3c114d37b2b7ec87de7182aca2077348409dbf83 (patch)
tree7383c9f91140470959c62ad076e421ab5c394e10 /extra/webkit2gtk/PKGBUILD
parentd9dce5fc9b587815abadb9140f511cb239ce7e12 (diff)
extra/webkit2gtk: testing non-SSE2 and build patches
Diffstat (limited to 'extra/webkit2gtk/PKGBUILD')
-rw-r--r--extra/webkit2gtk/PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/extra/webkit2gtk/PKGBUILD b/extra/webkit2gtk/PKGBUILD
new file mode 100644
index 00000000..8f368200
--- /dev/null
+++ b/extra/webkit2gtk/PKGBUILD
@@ -0,0 +1,27 @@
+# disable SSE2 on 486 and 686
+if [ "$CARCH" = 'i486' -o "$CARCH" = 'i686' ]; then
+ source+=('webkitgtk-2.24.1-no-sse2.patch')
+ sha256sums+=('37b6ecf3918415fc0ad6662ea66ee77bf96c5343fcd80a243395e92b022b2d4e')
+
+ eval "$(
+ declare -f prepare | \
+ sed '
+ /cd.*/a patch -p1 < ../webkitgtk-2.24.1-no-sse2.patch
+ '
+ )"
+fi
+
+# work around broken generated makefiles resulting in
+# "make[2]: *** No rule to make target 'JavaScriptCore-4.0.gir', needed by 'WebKit2-4.0.gir'. Stop."
+if [ "$CARCH" = 'i486' -o "$CARCH" = 'i686' ]; then
+
+ eval "$(
+ declare -f build | \
+ sed '
+ /cmake --build build/a \
+ cd build && make JavaScriptCore-4-gir && cd .. \
+ cmake --build build
+ s/\(cmake --build build\)/\1 || true/g
+ '
+ )"
+fi