Set target CARCH before sourcing the PKGBUILD
CARCH might be used within the PKGBUILD to select correct sources
This commit is contained in:
parent
52e140f2fe
commit
4a4455c086
|
@ -147,6 +147,8 @@ if ! grep 'SRCDEST=/srcdest' "$copydir/etc/makepkg.conf" >/dev/null 2>&1; then
|
||||||
echo 'SRCDEST=/srcdest' >> "$copydir/etc/makepkg.conf"
|
echo 'SRCDEST=/srcdest' >> "$copydir/etc/makepkg.conf"
|
||||||
fi
|
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
|
# Copy PKGBUILD and sources
|
||||||
source PKGBUILD
|
source PKGBUILD
|
||||||
cp PKGBUILD "$copydir/build/"
|
cp PKGBUILD "$copydir/build/"
|
||||||
|
|
Loading…
Reference in New Issue