summaryrefslogtreecommitdiff
path: root/extra/qt5-webengine/PKGBUILD
blob: 7e6dfce6c2415c5ff748007062e19c09c760dd42 (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
eval "$(
  declare -f prepare | \
    sed '
      $ i find ${srcdir} -type f -name 'BUILD.gn' -exec sed -i "/-Wl,--fatal-warnings/d" {} \+
    '
)"

# disable ICU in webengine (why?)
eval "$(
  declare -f build | \
    sed '
      s/ -webengine-icu//
    '
)"

# let's not use too much memory, gcc tmpfiles can in this
# case also be put on a real /tmp (instead of tmpfs) to reduce
# preasure on the RAM
eval "$(
  declare -f build | \
    sed '
      /qmake/ a find . -name Makefile -exec sed -i "s@-pipe@@g" {} \\;
    '
)"

# redone patch, see also https://bugs.gentoo.org/721876
source+=('qtwebengine-everywhere-src-5.14.2-gcc10-patches.patch')
sha256sums+=('76a2a761cb30f9b0a7549d86249f049f91ce2a9c15abdcb194990258585e9fee')

eval "$(
  declare -f prepare | \
    sed '
      $ i cd "$srcdir/${_pkgfqn}"; patch -Np1 -i "${srcdir}"/qtwebengine-everywhere-src-5.14.2-gcc10-patches.patch
    '
)"