From: Fredrik Fornwall Date: Thu, 7 Dec 2017 02:19:46 +0000 (+0100) Subject: Prevent trying to run on-device (fixes #1910) X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/termux-packages/commitdiff_plain/bd2f734a96365816b6e7d2e3fc901560476c9760?ds=sidebyside Prevent trying to run on-device (fixes #1910) --- 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"