summaryrefslogtreecommitdiff
path: root/extra/libical/PKGBUILD
blob: dea960866616b85221f970b60ae8dba3afa8f128 (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
# no gobject-introspection and vala on i486
makedepends=(
  $(
    printf '%s\n' "${makedepends[@]}" \
    | grep -vxF gobject-introspection \
    | grep -vxF vala
  )
)
makedepends_i686+=(gobject-introspection vala)
makedepends_pentium4+=("${makedepends_i686[@]}")
checkdepends=(
  $(
    printf '%s\n' "${checkdepends[@]}" \
    | grep -vxF python-gobject
  )
) || true
checkdepends_i686+=(python-gobject)
checkdepends_pentium4+=("${checkdepends_i686[@]}")
eval "$(
  declare -f build \
  | sed '
    /DGOBJECT_INTROSPECTION/ {
      h
      s@^@[ "${CARCH}" = i486 ] || @
      p
      g
      s@\(-DGOBJECT_INTROSPECTION=\)true@\1false@
      s@\(-DICAL_GLIB_VAPI=\)true@\1false@
      s@^@[ ! "${CARCH}" = i486 ] || @
    }
  '
  declare -f check \
  | sed '
    2 a [ ! "${CARCH}" = i486 ] || return 0
  '
)"