Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community/john/PKGBUILD
blob: 597c394d50668f71feace709441f3ac627a1eef3 (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
# fix architecture case
if [ "${CARCH}" = "pentium4" ]; then
  eval "$(
    declare -f build | \
      sed '
        s/i686/pentium4/
        /.*avx.*/,/else/ {/.*avx.*/n;/else/!d}
      '
  )"
  eval "$(
    declare -f build | \
      sed '
        /avx/d
      '
  )"
fi
if [ "${CARCH}" = "i686" ]; then
  eval "$(
    declare -f build | \
      sed '
        /.*sse.*/,/else/ {/.*sse.*/n;/else/!d}
      '
  )"
  eval "$(
    declare -f build | \
      sed '
        /sse/d
      '
  )"
fi
if [ "${CARCH}" = "i486" ]; then
  eval "$(
    declare -f build | \
      sed '
        s/i686/i486/
        /.* -mmmx.*/,/else/ {/.* -mmmx.*/n;/else/!d}
      '
  )"
  eval "$(
    declare -f build | \
      sed '
        /mmx/d
      '
  )"
fi
eval "$(
  declare -f build | \
    sed '
      s/-DCPU_FALLBACK//
    '
)"