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

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

makedepends=(
  $(
    printf "${makedepends[@]}" \
    | 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
  '
)"