dart: fix error about unknown arch

Still fails due to not supporting python3.

%ci:no-build
This commit is contained in:
Henrik Grimler 2020-07-21 15:37:09 +02:00
parent f6792915d1
commit e112c4ed18

View File

@ -30,13 +30,13 @@ termux_step_get_source() {
termux_step_post_get_source() { termux_step_post_get_source() {
if [ $TERMUX_ARCH = "arm" ]; then if [ $TERMUX_ARCH = "arm" ]; then
export DEST_CPU="ARM" export DEST_CPU="arm"
elif [ $TERMUX_ARCH = "i686" ]; then elif [ $TERMUX_ARCH = "i686" ]; then
export DEST_CPU="IA32" export DEST_CPU="ia32"
elif [ $TERMUX_ARCH = "aarch64" ]; then elif [ $TERMUX_ARCH = "aarch64" ]; then
export DEST_CPU="ARM64" export DEST_CPU="arm64"
elif [ $TERMUX_ARCH = "x86_64" ]; then elif [ $TERMUX_ARCH = "x86_64" ]; then
export DEST_CPU="X64" export DEST_CPU="x64"
else else
termux_error_exit "Unsupported arch '$TERMUX_ARCH'" termux_error_exit "Unsupported arch '$TERMUX_ARCH'"
fi fi