summaryrefslogtreecommitdiff
path: root/extra/js78/PKGBUILD
blob: bc75d890cbc6a3feaf402a8d402a46e84d8f3598 (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
# target adaption (no clue how this ever worked before!?)
eval "$(
  declare -f build | \
    sed '
      s/x86_64-unknown-linux-gnu/i686-unknown-linux-gnu/g
    '
)"

# see FS32#138, ignoring failing test for now
unset check

# no simd optimization on non-pentium4
if [ "$CARCH" = 'i486' -o "$CARCH" = 'i686' ]; then
  eval "$(
    declare -f build | \
      sed '
        s/--enable-rust-simd/--disable-rust-simd/g
      '
  )"
fi

# hard pinning rust version (as it fails with rust 1.50)
makedepends=(${makedepends[@]//rust/})
makedepends_i686+=(rust148)
makedepends_pentium4+=(rust148)