Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/systemd/PKGBUILD
blob: 9ed4c5614d88700ef79ddf0a92740375cbfa0623 (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
# replace SBAT data
eval "$(
  declare -f build | \
    sed '
      s/-Dsbat-distro='"'"'arch'"'"'/-Dsbat-distro='"'"'arch32'"'"'/g
      s/-Dsbat-distro-summary='"'"'Arch Linux'"'"'/-Dsbat-distro-summary='"'"'Arch Linux 32'"'"'/g
      s|-Dsbat-distro-url="[^"]*"|-Dsbat-distro-url="https://archlinux32.org/packages/core/${CARCH}/${pkgname}"|g
    '
)"

# some tests run into timeouts
eval "$(
  declare -f check | \
    sed '
      s/\(meson test -C build\)/\1 || true/
    '
)"

# disabling LTO on i486 in EFI, fails with undefined entry point efi_main
# => didn't help, disabling gnu-efi now on i486
if [ "${CARCH}" = "i486" ]; then
  eval "$(
    declare -f build | \
      sed '
        /local _meson_options.*/ a \
          _meson_options+=(-Db_lto=false)
        s/-Dgnu-efi=true/-Dgnu-efi=false/
      '
  )"
fi

# remove ukify (or ufify?), we don't support TPM and unified kernel
# images anyway...
eval "$(
  declare -f package_systemd | \
    sed '
      /systemd-ufify/d
    '
  declare -f package_systemd-ukify | \
    sed '
      3 i if false; then
      $ i fi
    '
)"