diff options
author | Erich Eckner <git@eckner.net> | 2020-09-10 23:08:13 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-02-25 11:08:31 +0100 |
commit | b0b7060f88640eb8ea018338ebc7b5112c57bfea (patch) | |
tree | 3d97383803e8a1c62878980d6d21993fe13a1921 | |
parent | 9ea0bb671688cc31be34400bff9706602e9ff2fa (diff) | |
download | devtools32-b0b7060f88640eb8ea018338ebc7b5112c57bfea.tar.xz |
archbuild: create separate cache for armv6h, armv7h, aarch64
-rw-r--r-- | archbuild.in | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/archbuild.in b/archbuild.in index cfbd415..38f6619 100644 --- a/archbuild.in +++ b/archbuild.in @@ -59,20 +59,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') -fi - -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 |