|
@ -12,15 +12,17 @@ show_usage () { |
|
|
echo " -a The architecture to build for: aarch64(default), arm, i686, x86_64 or all." |
|
|
echo " -a The architecture to build for: aarch64(default), arm, i686, x86_64 or all." |
|
|
echo " -d Build with debug symbols." |
|
|
echo " -d Build with debug symbols." |
|
|
echo " -D Build a disabled package in disabled-packages/." |
|
|
echo " -D Build a disabled package in disabled-packages/." |
|
|
|
|
|
echo " -s Skip dependency check." |
|
|
exit 1 |
|
|
exit 1 |
|
|
} |
|
|
} |
|
|
while getopts :a:hdD option |
|
|
while getopts :a:hdDs option |
|
|
do |
|
|
do |
|
|
case "$option" in |
|
|
case "$option" in |
|
|
a) TERMUX_ARCH="$OPTARG";; |
|
|
a) TERMUX_ARCH="$OPTARG";; |
|
|
h) show_usage;; |
|
|
h) show_usage;; |
|
|
d) TERMUX_DEBUG=true;; |
|
|
d) TERMUX_DEBUG=true;; |
|
|
D) TERMUX_IS_DISABLED=true;; |
|
|
D) TERMUX_IS_DISABLED=true;; |
|
|
|
|
|
s) export TERMUX_SKIP_DEPCHECK=true;; |
|
|
?) echo "./build-package.sh: illegal option -$OPTARG"; exit 1;; |
|
|
?) echo "./build-package.sh: illegal option -$OPTARG"; exit 1;; |
|
|
esac |
|
|
esac |
|
|
done |
|
|
done |
|
@ -567,6 +569,15 @@ if [ -n "${TERMUX_PKG_BLACKLISTED_ARCHES:=""}" -a "$TERMUX_PKG_BLACKLISTED_ARCHE |
|
|
exit 0 |
|
|
exit 0 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ -z "${TERMUX_SKIP_DEPCHECK:=""}" ]; then |
|
|
|
|
|
for p in `./scripts/buildorder.py $TERMUX_PKG_NAME`; do |
|
|
|
|
|
if [ "$p" != "$TERMUX_PKG_NAME" ]; then |
|
|
|
|
|
echo "Building dependency $p if necessary..." |
|
|
|
|
|
./build-package.sh -s $p |
|
|
|
|
|
fi |
|
|
|
|
|
done |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
# 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 |
|
|