arch-repo: list items

This commit is contained in:
Daniel Langbein 2021-04-22 11:46:18 +02:00
parent 2564c833e2
commit c04dec2722
2 changed files with 7 additions and 2 deletions

View File

@ -2,7 +2,7 @@
_pkgname=repo
_reponame=arch-pkg
pkgname="de-p1st-$_pkgname"
pkgver=0.0.4
pkgver=0.0.5
pkgrel=2
pkgdesc="Bash script to manage remote Arch Linux repository"
arch=('any')

View File

@ -31,13 +31,18 @@ function generate_index(){
</head>
<body>
<h1>privacy1st.de Arch Packages</h1>
<p>The sources can be found here: <a href="https://git.privacy1st.de/langfingaz/arch-pkg">https://git.privacy1st.de/langfingaz/arch-pkg</a></p>
<ul>
' > index.html
for PKG in ./*.pkg.tar.{xz,zst}; do
echo "<p><a href=\"$PKG\">$PKG</a></p>" >> index.html;
echo "<li><a href=\"$PKG\">$PKG</a></li>" >> index.html;
done
echo '
</ul>
</body>
</html>' >> index.html
}