Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/lib/repo/arch32.sh
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2023-06-08 12:04:12 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2023-06-08 12:04:12 +0200
commit249205486a837399b9675cb5fc93de8588e83523 (patch)
tree7c3393b716cb578012ad9cbfb702cdba0eed17ea /src/lib/repo/arch32.sh
parentad30dbfa9d70185f67d29b87ae5b59bb3b97cc45 (diff)
started to add a --arch32 flag (atm just setting arch correctly)
Diffstat (limited to 'src/lib/repo/arch32.sh')
-rw-r--r--src/lib/repo/arch32.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/repo/arch32.sh b/src/lib/repo/arch32.sh
new file mode 100644
index 0000000..5f7c5c5
--- /dev/null
+++ b/src/lib/repo/arch32.sh
@@ -0,0 +1,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"
+} \ No newline at end of file