Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/java8-openjdk/PKGBUILD
blob: 13356153f4f8fe1c7efb70995ece25acb2092586 (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
eval "$(
  declare -f build | \
    sed '
       s/-Wno-error=deprecated-declarations/-Wno-error=deprecated-declarations -Wno-error=deprecated/
    '
)"

eval "$(
  declare -f package_jre8-openjdk-headless | \
    sed '
      s/^\s*rm\s/\0-f /
      T
      s/ -f -f / -f /
    '
)"

# i486-specific
if [ "${CARCH}" = "i486" ]; then
  _JARCH=i386
fi

# pentium4-specific
if [ "${CARCH}" = "pentium4" ]; then
  _JARCH=i386
  _DOC_ARCH=x86

  # force 4-byte stack alignment on SSE aptimized systems, see FS32#75
  eval "$(
    declare -f build | \
      sed '
        s/\(export CFLAGS="\)/\1-mincoming-stack-boundary=2 /
        s/\(export CXXFLAGS="\)/\1-mincoming-stack-boundary=2 /
      '
  )"
fi

_nonheadless=(
  "${_nonheadless[@]/\/\///${_JARCH}/}"
)
_imgdir="${_imgdir//--/-${_JARCH}-}"