Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/archiso/PKGBUILD
blob: 368a7f33dd9df5d7c050369da5c106dd3dac3f9e (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
# We patch on-the-fly. This way, we don't need to publish our own archiso32 source and keep that in-sync.

if declare -f build; then
  >&2 echo 'Ooops, upstream added a build() function: more elaborate patching will be required.'
  exit 1
fi

build() {
  cd "${pkgbase}/configs/releng"
  mv packages.x86_64 packages.i686
  sed -i '
    /^edk2-shell$/d
  ' packages.i686
  sed -i '
    s@archlinux@archlinux32@g
    s@ARCH_@ARCH32_@g
    s@\bx86_64\b@i686@g
    /^bootmodes=/ s@\(\s\+'"'"'uefi-x64\.systemd-boot\.\S\+'"'"'\)\+@@
  ' profiledef.sh
  find airootfs -type f -exec \
  sed -i '
    s@\bx86_64\b@i686@g
    s@Arch Linux@\0 32@g
    s@pacman-key --populate archlinux@\032@g
  ' {} +
}