termux-packages/scripts/list-versions.sh

23 lines
470 B
Bash
Raw Normal View History

2018-07-02 14:00:15 +02:00
#!/usr/bin/env bash
. scripts/properties.sh
2018-07-02 14:00:15 +02:00
check_package() { # path
local path=$1
2019-02-12 09:41:30 +01:00
local pkg=$(basename $path)
2018-07-02 14:00:15 +02:00
TERMUX_PKG_REVISION=0
TERMUX_ARCH=aarch64
TERMUX_PREFIX=/data/data/com.termux/files/usr
2018-07-02 14:00:15 +02:00
. $path/build.sh
if [ "$TERMUX_PKG_REVISION" != "0" ] || [ "$TERMUX_PKG_VERSION" != "${TERMUX_PKG_VERSION/-/}" ]; then
TERMUX_PKG_VERSION+="-$TERMUX_PKG_REVISION"
fi
echo "$pkg=$TERMUX_PKG_VERSION"
}
for path in packages/*; do
(
check_package $path
)
done