Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/webkit2gtk/PKGBUILD
blob: 8f3682004aa7b2ba7d240161fc5abd545da6ff35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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