Update repology metadata generation
Fix empty dx version and write out empty depends array.
This commit is contained in:
parent
dae66641d4
commit
1e4bea57d9
@ -13,19 +13,17 @@ check_package() { # path
|
||||
echo " \"description\": \"$DESC\","
|
||||
echo " \"homepage\": \"$TERMUX_PKG_HOMEPAGE\","
|
||||
|
||||
if [ "$TERMUX_PKG_DEPENDS" != "" ]; then
|
||||
echo -n " \"depends\": ["
|
||||
FIRST_DEP=yes
|
||||
for p in ${TERMUX_PKG_DEPENDS//,/ }; do
|
||||
if [ $FIRST_DEP = yes ]; then
|
||||
FIRST_DEP=no
|
||||
else
|
||||
echo -n ", "
|
||||
fi
|
||||
echo -n "\"$p\""
|
||||
done
|
||||
echo "],"
|
||||
fi
|
||||
echo -n " \"depends\": ["
|
||||
FIRST_DEP=yes
|
||||
for p in ${TERMUX_PKG_DEPENDS//,/ }; do
|
||||
if [ $FIRST_DEP = yes ]; then
|
||||
FIRST_DEP=no
|
||||
else
|
||||
echo -n ", "
|
||||
fi
|
||||
echo -n "\"$p\""
|
||||
done
|
||||
echo "],"
|
||||
|
||||
if [ "$TERMUX_PKG_SRCURL" != "" ]; then
|
||||
echo " \"srcurl\": \"$TERMUX_PKG_SRCURL\","
|
||||
@ -37,6 +35,7 @@ check_package() { # path
|
||||
|
||||
export TERMUX_ARCH=aarch64
|
||||
export TERMUX_NDK_VERSION=17
|
||||
TERMUX_ANDROID_BUILD_TOOLS_VERSION=27.0.3
|
||||
|
||||
echo '['
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user