From 54edac605af971ed5bf9a49721c177e2c8024ff8 Mon Sep 17 00:00:00 2001
From: Wouter Wijsman
Date: Tue, 25 Jun 2024 11:00:27 +0200
Subject: [PATCH] Add groups to index pages
---
.gitignore | 1 +
index.html | 2 +-
make-repo-html.sh | 4 +++-
package.html | 1 +
4 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
index ac0053ef..27b7a0c0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,6 +5,7 @@
*.zip
*.bz2
__pycache__/
+repo/
# do allow github workflow files
!.github/workflows/
diff --git a/index.html b/index.html
index 65cdb026..5843203b 100644
--- a/index.html
+++ b/index.html
@@ -7,7 +7,7 @@
${GITHUB_REPOSITORY_OWNER}'s package index
- Name | Version | Description | Last Updated |
+ Name | Version | Description | Groups | Last Updated |
${INDEX_TABLE_CONTENT}
Source on GitHub
diff --git a/make-repo-html.sh b/make-repo-html.sh
index 3b816c26..fce79d66 100755
--- a/make-repo-html.sh
+++ b/make-repo-html.sh
@@ -2,6 +2,7 @@
#Change directory to the directory of this script
cd "$(dirname "$0")"
+mkdir -p repo
# Export all variables
set -a
@@ -23,6 +24,7 @@ for PSPBUILD in $(find . -name "PSPBUILD" | sort); do
# Convert lists to strings
ARCH="${arch[*]}"
LICENSE="${license[*]}"
+ GROUP_LIST="${groups[*]}"
# Get file size info
FILENAME="repo/${DOWNLOAD_URL}"
@@ -55,7 +57,7 @@ for PSPBUILD in $(find . -name "PSPBUILD" | sort); do
envsubst < package.html > "repo/${pkgname}.html"
- INDEX_TABLE_CONTENT="${INDEX_TABLE_CONTENT}${pkgname} | ${pkgver}-${pkgrel} | ${pkgdesc} | ${UPDATED} |
"
+ INDEX_TABLE_CONTENT="${INDEX_TABLE_CONTENT}${pkgname} | ${pkgver}-${pkgrel} | ${pkgdesc} | ${GROUP_LIST} | ${UPDATED} |
"
done
envsubst < index.html > repo/index.html
diff --git a/package.html b/package.html
index 1728cdab..ce78c44a 100644
--- a/package.html
+++ b/package.html
@@ -13,6 +13,7 @@
Description: ${pkgdesc}
Upstream URL: ${url}
License: ${LICENSE}
+ Groups: ${GROUP_LIST}
Last Updated: ${UPDATED}
Package Size: ${PKGSIZE}
Installed Size: ${INSTSIZE}