Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/memtest86+/PKGBUILD
blob: 8cab3c51417480d3261f4dcfae1bb06d3e0b7e75 (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
# build the 32-bit version
eval "$(
  declare -f build | \
    sed '
      s/build64/build32/g
    '
)"
eval "$(
  declare -f package_memtest86+ | \
    sed '
      s/build64/build32/g
    '
)"
eval "$(
  declare -f package_memtest86+-efi | \
    sed '
      s/build64/build32/g
    '
)"
eval "$(
  declare -f package_memtest86+-iso | \
    sed '
      s/build64/build32/g
    '
)"

# force i486 architecture (minimal is now hard-coded -march=586
if [ "${CARCH}" = "i486" ]; then
  source+=('i486.patch')
  sha512sums+=('0383e8092b7e6da23735eb8b34365017e61f3557393f8ec9d2e3c8f06bf6688ae02e47c22d3d0c954351c20943305df8d987dcce688fb58a03b803ae45e6890b')
  eval "$(
    {
      declare -f prepare || \
      printf 'prepare() { cd "memtest86plus" \n}\n'
    } \
    | sed '
      $i patch -Np1 -i ../i486.patch
    '
  )"
fi