Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/cmake/PKGBUILD
blob: d394180ee68d1264d5dd1fcb1c1c74b8d48c4a9b (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
# cmake requires expat but upstream don't seem to include it
depends+=('expat')

if [[ $CARCH = 'i486' ]]; then
  # do not build in parallel on build slaves
  eval "$(
    declare -f build | \
      sed '
        s/--parallel=.*/--parallel=1/
      '
  )"

  # ignore gui (for now, needs Qt6, which needs atomics)
  makedepends=(${makedepends[@]//qt6-base/})
  eval "$(
    declare -f build | \
      sed '
        s/--qt-gui//
      '
  )"

  # disable documentation (python is somewhat broken currently)
  makedepends=(${makedepends[@]//python-sphinx/})
  eval "$(
    declare -f build | \
      sed '
        s/--sphinx-man//
        s/--sphinx-html//
      '
    declare -f package | \
      sed '
        /html\/_sources/d
      '
  )"

  # emacs is broken currently
  makedepends=(${makedepends[@]//emacs/})
  eval "$(
    declare -f package | \
      sed '
        /emacs/d
      '
  )"
fi