Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/webkit2gtk/PKGBUILD
blob: 294674b30efbcaa959bf19c05960be61476200f0 (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
38
39
40
41
42
43
44
45
46
# disable SSE2 on 486 and 686
source_i486+=('webkitgtk-2.36.3-no-sse2.arch32.patch')
source_i686+=('webkitgtk-2.36.3-no-sse2.arch32.patch')
sha256sums_i486+=('58a724b7f1092a9049186a3b8c61689c31558b6c2b587c827cec04219397adac')
sha256sums_i686+=('58a724b7f1092a9049186a3b8c61689c31558b6c2b587c827cec04219397adac')
if [ "${CARCH}" != "pentium4" ]; then
  eval "$(
    declare -f prepare | \
      sed '
        /cd.*/a patch -Rp1 -i "$srcdir"/webkitgtk-2.36.3-no-sse2.arch32.patch
      '
  )"	
fi

# do not build JIT code on non-pentium4 (breaks in micro-optimizations)
eval "$(
  declare -f build | \
    sed '
      /cmake --build build/ ! {
        /^\s*cmake / {
          h
          s/^.*$/[ "${CARCH}" != pentium4 ] || \0/
          p
          g
          s/^\s*cmake /[ "${CARCH}" = pentium4 ] || \0-DENABLE_JIT=OFF -DENABLE_C_LOOP=ON -DENABLE_SAMPLING_PROFILER=OFF /
        }
      }
    '
)"	

# Below from here
options+=('!debug' '!lto')
if [ "${CARCH}" != "pentium4" ]; then
  eval "$(
    declare -f prepare | \
      sed '
        4 i patch -p1 -i "${srcdir}/${CARCH}.diff"
      '
  )"
fi

unset sha256sums
source_i486+=('i486.diff')
source_i686+=('i686.diff')
b2sums_i486+=('84b147cd7c1c5bb324af8bc1451fe048b72f8c3c43001fb7a2ab01112566e48194264ab65491c4a7b80669bb101069744915faa03b0ae844f734170e3958760e')
b2sums_i686+=('3c765caa8e153722c7791fb6c1168e27b5b72922f433a9614969003900adeee5784d41b7836d18f177491369cf5929782296ef88a5e076719a44cda42c0abea1')