summaryrefslogtreecommitdiff
path: root/extra/libxkbcommon/PKGBUILD
blob: de810fdcef46bd75ef532085b269cda0b434e203 (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
# no documentation on i486
makedepends=(${makedepends[@]//graphviz/})
makedepends=(${makedepends[@]//doxygen/})
makedepends_i686+=(graphviz doxygen)
makedepends_pentium4=("${makedepends_i686[@]}")

# i486-specific
if [ "${CARCH}" = "i486" ]; then
  # no documentation

  eval "$(
    declare -f build | \
      sed '
        s/arch-meson/arch-meson -Denable-docs=false/
      '
  )"

  eval "$(
    declare -f package_libxkbcommon | \
      sed '
        /mv.*doc/d
      '
  )"

  eval "$(
    declare -f package_libxkbcommon-doc | \
      sed '
        /mv.*doc/d
      '
  )"
  
  # uses MESA, xorg-xcb
  unset check
  unset checkdepends

  # disable X11 during bootstrapping
  eval "$(
    declare -f build | \
      sed '
        s/arch-meson/arch-meson -Denable-x11=false/
      '
  )"  
  
  eval "$(
    declare -f package_libxkbcommon | \
      sed '
        /x11/d
      '
  )"  
  
  eval "$(
    declare -f package_libxkbcommon-x11 | \
      sed '
        /mv/,/ln/d
      '
  )"  

fi