Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/webkit2gtk/PKGBUILD
blob: 5686e4a571a81a90fe7f92059fad19467d483a85 (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
28
29
30
31
32
33
34
35
36
37
# disable SSE2 on 486 and 686
if [ "$CARCH" = 'i486' -o "$CARCH" = 'i686' ]; then
	source+=('webkitgtk-2.24.1-no-sse2.patch')
	sha256sums+=('07bf1fc27fa3b92583e60297b390a6a3b048710b531f54af79a275db559bf548')

	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."
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
    '
)"	

# work around:
# CMake Error at Source/cmake_install.cmake:41 (file):
# file INSTALL cannot find
# "/build/webkit2gtk/src/build/Documentation/webkit2gtk-4.0/html/webkit2gtk-4.0/style.css".
# Call Stack (most recent call first):
#  cmake_install.cmake:42 (include)
eval "$(
  declare -f package | \
    sed '
      s/\(.*cmake.*install\)/\1 || true/g
    '
)"