From 9c55b487302f0287c7beeadb80515d42cc66a65b Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Thu, 11 Feb 2021 22:16:02 +0200 Subject: [PATCH] repology scripts have been moved to termux/repology-metadata --- README.md | 1 - .../repology/generate-repology-metadata.sh | 85 ------------------- 2 files changed, 86 deletions(-) delete mode 100755 scripts/repology/generate-repology-metadata.sh diff --git a/README.md b/README.md index 6339f8f8d..0756532ee 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/scripts/repology/generate-repology-metadata.sh b/scripts/repology/generate-repology-metadata.sh deleted file mode 100755 index 6d9a12c74..000000000 --- a/scripts/repology/generate-repology-metadata.sh +++ /dev/null @@ -1,85 +0,0 @@ -#!/usr/bin/env bash -# -# Script for generating metadata for Repology in json format. -# -# Copyright 2018 Fredrik Fornwall @fornwall -# Copyright 2019-2020 Leonid Pliushch @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 ']'