summaryrefslogtreecommitdiff
path: root/community/ispc/PKGBUILD
blob: ead7793e5b545e4ef2b4ab35676e631eccd4e31c (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
# disable GENX
eval "$(
  declare -f build | \
    sed '
      s/-DGENX_ENABLED=ON/-DGENX_ENABLED=OFF/
    '
)"

# don't assume to be on a 64-bit Intel host and draw in gnu64 headers everywhere
source+=('ispc-1.16.1-host-amd64.patch')
sha256sums+=('7a4a631ad178b13f9ab68e6aec94469e30a4b9dec48d40f732a701b4ed4d5c1f')
eval "$(
  {
    declare -f prepare || \
    printf 'prepare() {\n}\n'
  } \
  | sed '
    $i cd "$srcdir/$pkgname-$pkgver" \
       patch -Np1 -i "$srcdir/ispc-1.16.1-host-amd64.patch"
  '
)"

# ignore test results, GENX tests failing obviously
eval "$(
  declare -f build | \
    sed '
      s/\(make.*check-all\)/\1 || true/
    '
)"

# packaging issue now as we are not building everything
eval "$(
  declare -f package | \
    sed '
      /rm.*build/d
      /rm.*libispcrt_static.a/d
    '
)"

# tests don't build when disabling GENX
unset check