pkgctl_repo_patch_arch32() { local pkgname="$1" # add the remote branch with our patches git -C "${pkgname}" remote add -m master archlinux32 https://git.archlinux32.org/packages/ # extend architecture with our architecture awk -i inplace '!/^arch=[^#]*any/ {gsub(/^arch=\(/,"arch=(i486 i686 pentium4 ")}; {print}' \ "${pkgname}/PKGBUILD" }