From 4a4455c0867ca678726c7692450c576c75f830a9 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 2 May 2010 15:23:54 +0200 Subject: Set target CARCH before sourcing the PKGBUILD CARCH might be used within the PKGBUILD to select correct sources --- makechrootpkg | 2 ++ 1 file changed, 2 insertions(+) (limited to 'makechrootpkg') diff --git a/makechrootpkg b/makechrootpkg index fa1070a..9daeb89 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -147,6 +147,8 @@ if ! grep 'SRCDEST=/srcdest' "$copydir/etc/makepkg.conf" >/dev/null 2>&1; then echo 'SRCDEST=/srcdest' >> "$copydir/etc/makepkg.conf" fi +# Set target CARCH as it might be used within the PKGBUILD to select correct sources +CARCH=$(eval $(grep '^CARCH=' "$copydir/etc/makepkg.conf")) # Copy PKGBUILD and sources source PKGBUILD cp PKGBUILD "$copydir/build/" -- cgit v1.2.3-24-g4f1b