Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/vim/PKGBUILD
blob: 80417055caefdca1ace7ddce4781e0fe1808cfa8 (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
unset check

# do not build gvim on i486 - no gtk3 and no libcanberra

makedepends=(
  $(
    echo "${makedepends[@]}" \
    | tr -s ' ' '\n' \
    | grep -vxF 'gtk3' \
    | grep -vxF 'libcanberra'
  )
)
makedepends_i686=(gtk3 libcanberra)
makedepends_pentium4=("${makedepends_i686[@]}")

eval "$(
  declare -f prepare \
  | sed '
    /gvim/ s/^/[ "${CARCH}" = i486 ] || /
  '

  declare -f build \
  | sed '
    /cd gvim/ s/^/[ "${CARCH}" = i486 ] || /
  '

  declare -f package_gvim \
  | sed '
    /cd gvim/ i [ "${CARCH}" != i486 ] || return
  '
)"