Browse Source

Make is possible to blacklist arch in a pkg

android-5
Fredrik Fornwall 9 years ago
parent
commit
9a104bdae4
  1. 11
      build-package.sh

11
build-package.sh

@ -90,9 +90,6 @@ if [ $TERMUX_ARCH = 'all' ]; then
exit exit
fi fi
echo "termux - building $1 for arch $TERMUX_ARCH..."
test -t 1 && printf "\033]0;$1...\007"
# We do not put all of build-tools/$TERMUX_ANDROID_BUILD_TOOLS_VERSION/ into PATH # We do not put all of build-tools/$TERMUX_ANDROID_BUILD_TOOLS_VERSION/ into PATH
# to avoid stuff like arm-linux-androideabi-ld there to conflict with ones from # to avoid stuff like arm-linux-androideabi-ld there to conflict with ones from
# the standalone toolchain. # the standalone toolchain.
@ -683,6 +680,14 @@ termux_setup_golang () {
source $TERMUX_PKG_BUILDER_SCRIPT source $TERMUX_PKG_BUILDER_SCRIPT
if [ "$TERMUX_PKG_BLACKLISTED_ARCHES" != "${TERMUX_PKG_BLACKLISTED_ARCHES/$TERMUX_ARCH/}" ]; then
echo "Skipping building $TERMUX_PKG_NAME for arch $TERMUX_ARCH"
exit 0
fi
echo "termux - building $1 for arch $TERMUX_ARCH..."
test -t 1 && printf "\033]0;$1...\007"
# Compute full version: # Compute full version:
TERMUX_PKG_FULLVERSION=$TERMUX_PKG_VERSION TERMUX_PKG_FULLVERSION=$TERMUX_PKG_VERSION
if [ "$TERMUX_PKG_BUILD_REVISION" != "0" -o "$TERMUX_PKG_FULLVERSION" != "${TERMUX_PKG_FULLVERSION/-/}" ]; then if [ "$TERMUX_PKG_BUILD_REVISION" != "0" -o "$TERMUX_PKG_FULLVERSION" != "${TERMUX_PKG_FULLVERSION/-/}" ]; then

Loading…
Cancel
Save