Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/subversion/PKGBUILD
blob: 5d1e3d675354932971df9e64cb94fc4ba28a7332 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# no Ruby bindings on i486
makedepends=(${makedepends[@]//ruby/})
checkdepends=(${checkdepends[@]//ruby-test-unit/})
makedepends_i686+=(ruby)
checkdepends_i686+=(ruby-test-unit)

# no KDE gui on i486
makedepends=(${makedepends[@]//kdelibs4support/})
makedepends=(${makedepends[@]//kwallet/})
makedepends_i686+=(kdelibs4support kwallet)

# no Gnome gui on i486
makedepends=(${makedepends[@]//libgnome-keyring/})
makedepends_i686+=(libgnome-keyring)

checkdepends_pentium4=("${checkdepends_i686[@]}")
makedepends_pentium4=("${makedepends_i686[@]}")

# make failing check() non-fatal
eval "$(
  declare -f check \
  | sed '
    /make check/s/;\?$/ || true/
  '
)"

# i486-specific
if [ "${CARCH}" = "i486" ]; then
  # no Ruby bindings
  eval "$(
    declare -f build | \
      sed '
        s@--with-ruby-sitedir=/usr/lib/ruby/vendor_ruby@@
        /make/s/swig-rb//
      '
  )"
  eval "$(
    declare -f check | \
      sed '
        /make/s/check-swig-rb//
      '
  )"
  eval "$(
    declare -f package | \
      sed '
        /make/s/install-swig-rb//
      '
  )"

  # no KDE gui
  eval "$(
    declare -f build | \
      sed '
        s@--with-kwallet@@
      '
  )"

  # no Gnome gui
  eval "$(
    declare -f build | \
      sed '
        s@--with-gnome-keyring@@
      '
  )"
fi