Prevent trying to run on-device (fixes #1910)

This commit is contained in:
Fredrik Fornwall 2017-12-07 03:19:46 +01:00
parent 545badd19e
commit d46d82a3fe
2 changed files with 5 additions and 2 deletions

View File

@ -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
===========================================

View File

@ -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"