archbuild: Use array for base packages
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
parent
6da47a8f6a
commit
d70918d18a
|
@ -1,12 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
base_packages='base base-devel sudo'
|
base_packages=(base base-devel sudo)
|
||||||
|
|
||||||
cmd="$(basename "${0%-build}")"
|
cmd="$(basename "${0%-build}")"
|
||||||
if [ "${cmd%-*}" == 'multilib' ]; then
|
if [ "${cmd%-*}" == 'multilib' ]; then
|
||||||
repo="${cmd}"
|
repo="${cmd}"
|
||||||
arch='x86_64'
|
arch='x86_64'
|
||||||
base_packages+=' multilib-devel'
|
base_packages+=(multilib-devel)
|
||||||
else
|
else
|
||||||
repo=${cmd%-*}
|
repo=${cmd%-*}
|
||||||
arch=${cmd##*-}
|
arch=${cmd##*-}
|
||||||
|
@ -56,7 +56,7 @@ if ${clean_first} || [ ! -d "${chroots}/${repo}-${arch}" ]; then
|
||||||
-C /usr/share/devtools/pacman-${repo}.conf \
|
-C /usr/share/devtools/pacman-${repo}.conf \
|
||||||
-M /usr/share/devtools/makepkg-${arch}.conf \
|
-M /usr/share/devtools/makepkg-${arch}.conf \
|
||||||
${chroots}/${repo}-${arch}/root \
|
${chroots}/${repo}-${arch}/root \
|
||||||
${base_packages}
|
"${base_packages[@]}"
|
||||||
else
|
else
|
||||||
setarch ${arch} mkarchroot \
|
setarch ${arch} mkarchroot \
|
||||||
-u \
|
-u \
|
||||||
|
|
Loading…
Reference in New Issue