Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/python/PKGBUILD
blob: 407d9333b6b2272829982056347dca45704b23b6 (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
# tests run with -j4 per default effectively killing build slaves,
# forcing single threaded execution of tests

eval "$(
  declare -f build | \
    sed "
      s/make /make EXTRATESTOPTS='-j 1' /
    "
)"

eval "$(
  declare -f check | \
    sed "
      s/ -m test.regrtest/ -m test.regrtest -j1/
    "
)"

# i486-specific
if [ "${CARCH}" = "i486" ]; then
  # remove dependency on most things, we want only a simple interpreter
  # a little bit smarter than a shell for building and code generation
  makedepends=(${makedepends[@]//tk/})
  makedepends=(${makedepends[@]//bluez-libs/})
  makedepends=(${makedepends[@]//llvm/})

  # do not start X servers just for building software!
  makedepends=(${makedepends[@]//xorg-server-xvfb/})
  eval "$(
    declare -f build | \
      sed '
        /export servernum=99/,/done/d
        s/.*make/make/
      '
  )"
  eval "$(
    declare -f check | \
      sed '
        /export servernum=99/,/done/d
        s/xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" -a -n "$servernum"//
      '
  )"
fi