index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-09-10 23:08:13 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-10-11 15:04:39 +0200 |
commit | b331b6d0ab5cb28b6ec4b10c62f83df75c2c44f5 (patch) | |
tree | 3a4175830fd8bc71b18d7cd054ff94ab7c91550e /archbuild.in | |
parent | 9ea6454f6c1e4fdd4d7ce52777019186fcd5e87f (diff) |
-rw-r--r-- | archbuild.in | 30 |
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 |