Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/libsoup/PKGBUILD
blob: 49e9531d5dcec53742ba64b85cbe52ebb46611c9 (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
# remove Vala and introspection on i486
for _drop_dep in vala; do
  if makedepends_i686+=(
    $(
      printf '%s\n' "${makedepends[@]}" \
      | grep -xF ${_drop_dep}
    )
  ); then
    makedepends_pentium4=("${makedepends_i686[@]}")
    makedepends=(
      $(
        printf '%s\n' "${makedepends[@]}" \
        | grep -vxF ${_drop_dep}
      )
    )
  fi
done
eval "$(
  declare -f build \
  | sed '
    /arch-meson/ {
      h
      s/^/[ "${CARCH}" = i486 ] || /
      p
      g
      s/^\(.*\);$/[ "${CARCH}" != i486 ] || \1 -D vapi=disabled;/
    }
  '
)"

# remove dependency on sysprof
depends=(${depends[@]//sysprof/})
makedepends=(${makedepends[@]//sysprof/})
eval "$(
  declare -f build | \
    sed '
      s@arch-meson@arch-meson -D sysprof=disabled@g
    '
)"