Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-09-10 23:08:13 +0200
committerErich Eckner <git@eckner.net>2022-12-08 12:57:22 +0100
commit2881dea3d083be46fc4d73a7981b82c58b485d3e (patch)
tree91c8da84c7ed1e8ef0d78bf6dd2896ca14194885 /src
parent14683ab46ee9b066c2d52ce125c305205f7b92a0 (diff)
archbuild: create separate cache for armv6h, armv7h, aarch64
Diffstat (limited to 'src')
-rw-r--r--src/archbuild.in22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/archbuild.in b/src/archbuild.in
index e8ac159..d5a31e9 100644
--- a/src/archbuild.in
+++ b/src/archbuild.in
@@ -60,12 +60,22 @@ done
check_root SOURCE_DATE_EPOCH,SRCDEST,SRCPKGDEST,PKGDEST,LOGDEST,MAKEFLAGS,PACKAGER,GNUPGHOME,PKGEXT
-if [ "${arch}" = "x86_64" ]; then
- cache_dir=''
-else
- mkdir -p '/var/cache/archbuild32'
- cache_dir='-c/var/cache/archbuild32'
- makechrootpkg_args+=('-d/var/cache/archbuild32:/var/cache/pacman/pkg')
+case "${arch}" in
+ 'x86_64')
+ cache_dir=''
+ ;;
+ 'i486'|'i686'|'pentium4')
+ cache_dir='archbuild32'
+ ;;
+ *)
+ cache_dir='archbuildarm-'"${arch}"
+ ;;
+esac
+
+if [ -n "${cache_dir}" ]; then
+ mkdir -p '/var/cache/'"${cache_dir}"
+ makechrootpkg_args+=('-d/var/cache/'"${cache_dir}"':/var/cache/pacman/pkg')
+ cache_dir='-c/var/cache/'"${cache_dir}"
fi
# Pass all arguments after -- right to makepkg