From bd2f734a96365816b6e7d2e3fc901560476c9760 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Thu, 7 Dec 2017 03:19:46 +0100 Subject: [PATCH] Prevent trying to run on-device (fixes #1910) --- README.md | 3 +-- build-package.sh | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 451819cd..66eda8df 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,7 @@ Termux packages [![Build Status](https://travis-ci.org/termux/termux-packages.svg?branch=master)](https://travis-ci.org/termux/termux-packages) [![Join the chat at https://gitter.im/termux/termux](https://badges.gitter.im/termux/termux.svg)](https://gitter.im/termux/termux) -This project contains scripts and patches to build packages for the -[Termux](https://termux.com/) Android application. +This project contains scripts and patches to build packages for the [Termux](https://termux.com/) Android application. Note that packages are cross compiled and that on-device builds are not currently supported. Setting up a build environment using Docker =========================================== diff --git a/build-package.sh b/build-package.sh index fd378ac0..d12ec5ac 100755 --- a/build-package.sh +++ b/build-package.sh @@ -8,6 +8,10 @@ termux_error_exit() { exit 1 } +if [ `uname -o` = Android ]; then + termux_error_exit "On-device builds are not supported - see README.md" +fi + # Utility function to download a resource, optionally checking against a checksum. termux_download() { local URL="$1" -- 2.11.0