Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/archiso/PKGBUILD
blob: f9ff0e6169870f325746829a70fd0a929202e2b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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 '
    s@archlinux@archlinux32@g
    s@ARCH_@ARCH32_@g
  ' 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
  ' {} +
}