summaryrefslogtreecommitdiff
path: root/extra/librsvg/PKGBUILD
blob: f5585f33e17e3d7d9d23929ef6ee58dd12179786 (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
# target Pentium 3 without SSE2

eval "$(
  declare -f prepare | \
    sed '
      /autogen.sh/ i sed -i \"s/\\\$(CARGO).* build/RUSTFLAGS=\\"-C target-cpu=pentium3 -C target-feature=-sse2\\" \\0/g\" Makefile.am
    '
)"

eval "$(
  declare -f build | \
    sed '
      s/make/make V=1/
    '
)"

# FAIL: rsvg-test 109 /rsvg-test/reftests/svg1.1/pservers-pattern-02-f.svg
# see https://gitlab.gnome.org/GNOME/librsvg/issues/233
# => for now run checks, but make failure non-fatal..
eval "$(
  declare -f check | \
    sed '
      s/make check/make check || true/
    '
)"

# use rust, not rustup, compiled rustc uses pentium3, non-SSE2 optimizations,
# no clue what we get with rustup!

makedepends=(${makedepends[@]//rustup/})

eval "$(
  declare -f prepare | \
    sed '
      s/rustup/#rustup/
    '
)"