2018-07-02 14:00:15 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-10-30 20:31:48 +01:00
|
|
|
SCRIPT_DIR=$(dirname "$(realpath "$0")")
|
|
|
|
. "$SCRIPT_DIR"/properties.sh
|
2018-08-15 16:52:18 +02:00
|
|
|
|
2018-07-02 14:00:15 +02:00
|
|
|
check_package() { # path
|
|
|
|
local path=$1
|
2020-10-30 20:31:48 +01:00
|
|
|
local pkg=$(basename "$path")
|
2018-07-02 14:00:15 +02:00
|
|
|
TERMUX_PKG_REVISION=0
|
|
|
|
TERMUX_ARCH=aarch64
|
2020-10-30 20:31:48 +01:00
|
|
|
. "$path"/build.sh
|
2018-07-02 14:00:15 +02:00
|
|
|
if [ "$TERMUX_PKG_REVISION" != "0" ] || [ "$TERMUX_PKG_VERSION" != "${TERMUX_PKG_VERSION/-/}" ]; then
|
|
|
|
TERMUX_PKG_VERSION+="-$TERMUX_PKG_REVISION"
|
|
|
|
fi
|
|
|
|
echo "$pkg=$TERMUX_PKG_VERSION"
|
|
|
|
}
|
|
|
|
|
2020-10-30 20:31:48 +01:00
|
|
|
for path in "${SCRIPT_DIR}"/../packages/*; do
|
2018-07-02 14:00:15 +02:00
|
|
|
(
|
2020-10-30 20:31:48 +01:00
|
|
|
check_package "$path"
|
2018-07-02 14:00:15 +02:00
|
|
|
)
|
|
|
|
done
|