Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/java8-openjdk/PKGBUILD
blob: 34863d3478dada11582fde83f626c02f104307db (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
# temporary workaround for wrong checksums (FS#63430)

sha256sums=('7956f23558c639c9cba3c6b5c6eb88026c4818b99e565131bf753c32cf002b7f'
            '6b5fd5edb8a17c48bd21e771bfb6bbb92ff5f0e0bdd3f7adf1dcd20bea2b97b1'
            'eace8a94fb59e3675a83e327bd5a39a5f26c7b1ab00ef07b7d9a036350702d9c'
            '2c56b817dd1237a51799099f7d89d36768ac56570c72fa6d1fb728cb6806d472'
            'da4104998376928270adb8cde0c212b235e1a583077b85e18c232d043e81d1f9'
            '13c2cd4cd1c3d6e6b38204589a9799668e9e76a1ba0794b85024a600ca4edea7'
            '1fedb675c31698b18abfe0d86b14cf63beb95ecfad1b48ea65d27ebb5f7f0c94'
            'c04ecd3e6ed6d376da63c0cf6037d2877295e84283333070324d4a718be2b1f3')

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}-}"