summaryrefslogtreecommitdiff
path: root/extra/meson/PKGBUILD
blob: 74cfa56b3afa206fb79e6bd10c55510425f1a896 (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
# we have no 32-bit cuda support
checkdepends=(${checkdepends[@]//cuda/})

# no rust on i486
checkdepends=(${checkdepends[@]//rust-bindgen/})
checkdepends=(${checkdepends[@]//rust/})
checkdepends_i686+=('rust')
checkdepends_i686+=('rust-bindgen')

# D compiler broken on i486
checkdepends=(${checkdepends[@]//ldc/})
checkdepends_i686+=('ldc')

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

# still far too many tests fail, ignoring for now
unset check
unset checkdepends

# do not set b_lto to true in arch-meson wrapper on i486 
if [ "${CARCH}" = "i486" ]; then
  eval "$(
    {
      declare -f package || \
      printf 'package() {\n}\n'
    } \
    | sed '
      $i sed -i "s/b_lto=.*/b_lto=false/" "$pkgdir/usr/bin/arch-meson"
    '
  )"
fi