index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Levente Polyak <anthraxx@archlinux.org> | 2019-12-28 19:08:22 +0100 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2020-02-11 01:42:17 +0100 |
commit | 57fb44b97662e1c3753c150a231c5a362049025a (patch) | |
tree | bdd0ff802f20b50cfb503005781aa495e62ea9f1 | |
parent | 9b4d8ae93053fcebc281f54d8a374839a7a50861 (diff) |
-rwxr-xr-x | offload-build.in | 11 |
diff --git a/offload-build.in b/offload-build.in index e607a16..80b67da 100755 --- a/offload-build.in +++ b/offload-build.in @@ -74,11 +74,12 @@ while (( $# )); do done # multilib must be handled specially +archbuild_arch="${arch}" if [[ $repo = multilib* ]]; then - arch= + archbuild_arch= fi -archbuild_cmd=("${repo}${arch:+-$arch}-build" "$@") +archbuild_cmd=("${repo}${archbuild_arch:+-$archbuild_arch}-build" "$@") trap 'rm -rf $SRCPKGDEST' EXIT INT TERM QUIT @@ -108,7 +109,11 @@ mapfile -t files < <( printf "%s\n" "" "-> build complete" && printf "\t%s\n" "$temp"/* } >&2 && - makepkg --packagelist + makepkg_config="/usr/share/devtools/makepkg-'"${arch}"'.conf" && + if [[ -f /usr/share/devtools/makepkg-'"${repo}"'-'"${arch}"'.conf ]]; then + makepkg_config="/usr/share/devtools/makepkg-'"${repo}"'-'"${arch}"'.conf" + fi && + makepkg --config "${makepkg_config}" --packagelist ') |