blob: a402985617278e579bafd23fe378b1cf9981e1e4 (
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 gobject-introspection 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
'
)"
|