diff options
author | EuAndreh <eu@euandre.org> | 2023-03-22 17:17:34 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-22 17:17:34 -0300 |
commit | f80673318e366b2ae8a7666cdb804500545fabb2 (patch) | |
tree | f2d09ebec0ca36848bf4cee51ac40e06e5b4cdd2 | |
parent | src/bin/paku: Improve name of package variants (diff) | |
download | package-repository-f80673318e366b2ae8a7666cdb804500545fabb2.tar.gz package-repository-f80673318e366b2ae8a7666cdb804500545fabb2.tar.xz |
src/bin/paku: Use homepage, changelog and downloads-page from paku.lock directly
-rw-r--r-- | Formula/git-permalink-0-1-0.rb | 2 | ||||
-rw-r--r-- | Formula/git-permalink-0-2-0.rb | 2 | ||||
-rw-r--r-- | Formula/guile-heredoc.rb | 2 | ||||
-rw-r--r-- | Formula/remembering-0-1-2.rb | 2 | ||||
-rw-r--r-- | Formula/td.rb | 2 | ||||
-rw-r--r-- | paku.lock | 15 | ||||
-rwxr-xr-x | src/bin/paku | 12 |
7 files changed, 26 insertions, 11 deletions
diff --git a/Formula/git-permalink-0-1-0.rb b/Formula/git-permalink-0-1-0.rb index a7368a5..3392926 100644 --- a/Formula/git-permalink-0-1-0.rb +++ b/Formula/git-permalink-0-1-0.rb @@ -1,6 +1,6 @@ class GitPermalink010 < Formula desc 'Git extension to generate web permalinks of files in a repository' - homepage 'https://euandre.org/s/git-permalink' + homepage 'https://euandre.org/s/git-permalink/' url 'https://euandre.org/git/git-permalink/snapshot/git-permalink-v0.1.0.tar.xz' sha256 '252c98e349fed8df180ace540675b69a811ff56a9f06fa505eb475e047648a1f' license 'AGPL-3.0-or-later' diff --git a/Formula/git-permalink-0-2-0.rb b/Formula/git-permalink-0-2-0.rb index d28af13..7b66c53 100644 --- a/Formula/git-permalink-0-2-0.rb +++ b/Formula/git-permalink-0-2-0.rb @@ -1,6 +1,6 @@ class GitPermalink020 < Formula desc 'Git extension to generate web permalinks of files in a repository' - homepage 'https://euandre.org/s/git-permalink' + homepage 'https://euandre.org/s/git-permalink/' url 'https://euandre.org/git/git-permalink/snapshot/git-permalink-v0.2.0.tar.xz' sha256 '9ea6562812f6127771bc2b86919ea63056fcc0f5c1e556875855c924ee8b1183' license 'AGPL-3.0-or-later' diff --git a/Formula/guile-heredoc.rb b/Formula/guile-heredoc.rb index 3f24ecf..98fc76a 100644 --- a/Formula/guile-heredoc.rb +++ b/Formula/guile-heredoc.rb @@ -1,6 +1,6 @@ class GuileHeredoc < Formula desc 'Guile heredoc syntax' - homepage 'https://euandre.org/s/guile-heredoc' + homepage 'https://euandre.org/s/guile-heredoc/' url 'https://euandre.org/git/guile-heredoc/snapshot/guile-heredoc-065435cdce609604e33b879b9be3e81ab89f3e7b.tar.xz' sha256 '4d6e5171f36d48ab2341cc9e3346262f9ec7c9f0fd3d88ec6e204ef2160821f8' license 'AGPL-3.0-or-later' diff --git a/Formula/remembering-0-1-2.rb b/Formula/remembering-0-1-2.rb index 7366d97..ebd9021 100644 --- a/Formula/remembering-0-1-2.rb +++ b/Formula/remembering-0-1-2.rb @@ -1,6 +1,6 @@ class Remembering012 < Formula desc 'Add memory to dmenu, fzf and similar tools' - homepage 'https://euandre.org/s/remembering' + homepage 'https://euandre.org/s/remembering/' url 'https://euandre.org/git/remembering/snapshot/remembering-v0.1.2.tar.xz' sha256 'bbf0fd451d3de3b09a01cfbcc74482741463f9d8ac73ba6024e538c203b1dfeb' license 'AGPL-3.0-or-later' diff --git a/Formula/td.rb b/Formula/td.rb index af0d84d..b005c82 100644 --- a/Formula/td.rb +++ b/Formula/td.rb @@ -1,6 +1,6 @@ class Td < Formula desc 'Minimalistic bug tracker CLI' - homepage 'https://euandre.org/s/td' + homepage 'https://euandre.org/s/td/' url 'https://euandre.org/git/td/snapshot/td-4a8a7a2662c94b2581f587e9a4b81feba4f5e7d8.tar.xz' sha256 'a25561ae8062788bfb79df2de5f26e5f1100638fbeabff934490cdf0a9dde105' license 'AGPL-3.0-or-later' @@ -25,6 +25,9 @@ "sha256nix": "1jb0rgcj5b4bkm5gds3l0dymf3gd644r2njmirs9345vf54if45y", "url": "https://euandre.org/git/git-permalink/snapshot/git-permalink-v0.1.0.tar.xz", "base-url": "https://euandre.org/s/git-permalink", + "homepage": "https://euandre.org/s/git-permalink/", + "changelog": "https://euandre.org/s/git-permalink/CHANGELOG.html", + "downloads-page": "https://euandre.org/s/git-permalink/#releases", "fname": "git-permalink-v0.1.0.tar.xz", "maintainer": "EuAndreh <eu@euandre.org>", "maintainer-b64": "RXVBbmRyZWggPGV1QGV1YW5kcmUub3JnPg==", @@ -46,6 +49,9 @@ "sha256nix": "1bzx4gdfc87jfshaqifxpc3llp2j98wkzjjslzwbrqn59jzakxc9", "url": "https://euandre.org/git/git-permalink/snapshot/git-permalink-v0.2.0.tar.xz", "base-url": "https://euandre.org/s/git-permalink", + "homepage": "https://euandre.org/s/git-permalink/", + "changelog": "https://euandre.org/s/git-permalink/CHANGELOG.html", + "downloads-page": "https://euandre.org/s/git-permalink/#releases", "fname": "git-permalink-v0.2.0.tar.xz", "maintainer": "EuAndreh <eu@euandre.org>", "maintainer-b64": "RXVBbmRyZWggPGV1QGV1YW5kcmUub3JnPg==", @@ -67,6 +73,9 @@ "sha256nix": "1mrkyfcgz77hw7mpgqrnsaws9qng2awf8flslzf1s1gikk3zljns", "url": "https://euandre.org/git/remembering/snapshot/remembering-v0.1.2.tar.xz", "base-url": "https://euandre.org/s/remembering", + "homepage": "https://euandre.org/s/remembering/", + "changelog": "https://euandre.org/s/remembering/CHANGELOG.html", + "downloads-page": "https://euandre.org/s/remembering/#releases", "fname": "remembering-v0.1.2.tar.xz", "maintainer": "EuAndreh <eu@euandre.org>", "maintainer-b64": "RXVBbmRyZWggPGV1QGV1YW5kcmUub3JnPg==", @@ -88,6 +97,9 @@ "sha256nix": "1xqr2vc270jydk508pbkhcchmbg74w4bf83ch2d85nqja14r64n9", "url": "https://euandre.org/git/td/snapshot/td-4a8a7a2662c94b2581f587e9a4b81feba4f5e7d8.tar.xz", "base-url": "https://euandre.org/s/td", + "homepage": "https://euandre.org/s/td/", + "changelog": "https://euandre.org/s/td/CHANGELOG.html", + "downloads-page": "https://euandre.org/s/td/#releases", "fname": "td-4a8a7a2662c94b2581f587e9a4b81feba4f5e7d8.tar.xz", "maintainer": "EuAndreh <eu@euandre.org>", "maintainer-b64": "RXVBbmRyZWggPGV1QGV1YW5kcmUub3JnPg==", @@ -120,6 +132,9 @@ "sha256nix": "179qq17mgi4kakhj9w1dk26afljh5yad4j9ih9d8wms70x6h211m", "url": "https://euandre.org/git/guile-heredoc/snapshot/guile-heredoc-065435cdce609604e33b879b9be3e81ab89f3e7b.tar.xz", "base-url": "https://euandre.org/s/guile-heredoc", + "homepage": "https://euandre.org/s/guile-heredoc/", + "changelog": "https://euandre.org/s/guile-heredoc/CHANGELOG.html", + "downloads-page": "https://euandre.org/s/guile-heredoc/#releases", "fname": "guile-heredoc-065435cdce609604e33b879b9be3e81ab89f3e7b.tar.xz", "maintainer": "EuAndreh <eu@euandre.org>", "maintainer-b64": "RXVBbmRyZWggPGV1QGV1YW5kcmUub3JnPg==", diff --git a/src/bin/paku b/src/bin/paku index 67d92f3..16967a3 100755 --- a/src/bin/paku +++ b/src/bin/paku @@ -218,9 +218,9 @@ sub emit_nix() { longDescription = '' $long ''; - homepage = "$pkg->{'base-url'}/"; - changelog = "$pkg->{'base-url'}/CHANGELOG.html"; - downloadPage = "$pkg->{'base-url'}/#releases"; + homepage = "$pkg->{homepage}"; + changelog = "$pkg->{changelog}"; + downloadPage = "$pkg->{'downloads-page'}"; license = licenses.agpl3; platforms = platforms.unix; }; @@ -304,7 +304,7 @@ sub emit_guix() { (synopsis "$pkg->{description}") (description "$pkg->{'long-description'}") - (home-page "$pkg->{'base-url'}/") + (home-page "$pkg->{homepage}") (license licenses:agpl3+))) EOF @@ -460,7 +460,7 @@ sub emit_homebrew() { print $fh <<~EOF; class $class_name < Formula desc '$pkg->{description}' - homepage '$pkg->{'base-url'}' + homepage '$pkg->{homepage}' url '$pkg->{url}' sha256 '$pkg->{sha256}' license 'AGPL-3.0-or-later' @@ -526,7 +526,7 @@ sub emit_html() { ($ver) - $pkg->{description} </summary> <p> - <a href="$pkg->{'base-url'}/">Homepage</a> + <a href="$pkg->{homepage}/">Homepage</a> </p> <section> <h2>Guix</h2> |