Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/lib/repo/arch32.sh
blob: 5f7c5c5772f37d6ce1dc43f6ae081323a62b9c4d (plain)
1
2
3
4
5
6
7
8
9
10
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"
}