repology scripts have been moved to termux/repology-metadata
This commit is contained in:
parent
95e98e8e95
commit
9c55b48730
@ -2,7 +2,6 @@
|
||||
|
||||
[![Packages last build status](https://github.com/termux/termux-packages/workflows/Packages/badge.svg)](https://github.com/termux/termux-packages/actions)
|
||||
[![Docker image status](https://github.com/termux/termux-packages/workflows/Docker%20image/badge.svg)](https://hub.docker.com/r/termux/package-builder)
|
||||
[![Repology metadata status](https://github.com/termux/termux-packages/workflows/Repology%20metadata/badge.svg)](https://repology.org/repository/termux)
|
||||
[![Join the chat at https://gitter.im/termux/termux](https://badges.gitter.im/termux/termux.svg)](https://gitter.im/termux/termux)
|
||||
|
||||
[![Powered by JFrog Bintray](./.github/static/powered-by-bintray.png)](https://bintray.com)
|
||||
|
@ -1,85 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Script for generating metadata for Repology in json format.
|
||||
#
|
||||
# Copyright 2018 Fredrik Fornwall <fredrik@fornwall.net> @fornwall
|
||||
# Copyright 2019-2020 Leonid Pliushch <leonid.pliushch@gmail.com> @xeffyr
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
BASEDIR=$(dirname "$(realpath "$0")")
|
||||
export TERMUX_ARCH=aarch64
|
||||
. $(dirname "$(realpath "$0")")/../properties.sh
|
||||
|
||||
check_package() { # path
|
||||
# Avoid ending on errors such as $(which prog)
|
||||
# where prog is not installed.
|
||||
set +e
|
||||
|
||||
local path=$1
|
||||
local pkg=$(basename $path)
|
||||
TERMUX_PKG_MAINTAINER="Termux members @termux"
|
||||
TERMUX_PKG_API_LEVEL=24
|
||||
. $path/build.sh
|
||||
|
||||
echo " {"
|
||||
echo " \"name\": \"$pkg\","
|
||||
echo " \"version\": \"$TERMUX_PKG_VERSION\","
|
||||
DESC=$(echo "$TERMUX_PKG_DESCRIPTION" | head -n 1)
|
||||
echo " \"description\": \"$DESC\","
|
||||
echo " \"homepage\": \"$TERMUX_PKG_HOMEPAGE\","
|
||||
|
||||
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\","
|
||||
fi
|
||||
|
||||
echo " \"maintainer\": \"$TERMUX_PKG_MAINTAINER\""
|
||||
echo -n " }"
|
||||
}
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Usage: generate-repology-metadata.sh [./path/to/pkg/dir] ..."
|
||||
echo "Generate package metadata for Repology."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export FIRST=yes
|
||||
echo '['
|
||||
for path in "$@"; do
|
||||
if [ $FIRST = yes ]; then
|
||||
FIRST=no
|
||||
else
|
||||
echo -n ","
|
||||
echo ""
|
||||
fi
|
||||
|
||||
# Run each package in separate process since we include their environment variables:
|
||||
( check_package $path)
|
||||
done
|
||||
echo ""
|
||||
echo ']'
|
Loading…
Reference in New Issue
Block a user