diff options
-rw-r--r-- | paku.lock | 25 | ||||
-rwxr-xr-x | src/bin/paku | 10 |
2 files changed, 23 insertions, 12 deletions
@@ -26,10 +26,13 @@ "base-url": "https://euandre.org/s/git-permalink", "fname": "git-permalink-v0.1.0.tar.xz", "maintainer": "EuAndreh <eu@euandre.org>", + "maintainer-b64": "RXVBbmRyZWggPGV1QGV1YW5kcmUub3JnPg==", "architectures": "any", "type": "tag", "description": "Git extension to generate web permalinks of files in a repository", - "long-description": "It knows about many of the existing code forges, but allows for URL\ntemplate overrides to be used on custom domains or deployments via git\nconfig." + "description-b64": "R2l0IGV4dGVuc2lvbiB0byBnZW5lcmF0ZSB3ZWIgcGVybWFsaW5rcyBvZiBmaWxlcyBpbiBhIHJlcG9zaXRvcnk=", + "long-description": "It knows about many of the existing code forges, but allows for URL\ntemplate overrides to be used on custom domains or deployments via git\nconfig.", + "long-description-b64": "SXQga25vd3MgYWJvdXQgbWFueSBvZiB0aGUgZXhpc3RpbmcgY29kZSBmb3JnZXMsIGJ1dCBhbGxvd3MgZm9yIFVSTAp0ZW1wbGF0ZSBvdmVycmlkZXMgdG8gYmUgdXNlZCBvbiBjdXN0b20gZG9tYWlucyBvciBkZXBsb3ltZW50cyB2aWEgZ2l0CmNvbmZpZy4=" }, { "name": "git-permalink", @@ -43,10 +46,13 @@ "base-url": "https://euandre.org/s/git-permalink", "fname": "git-permalink-v0.2.0.tar.xz", "maintainer": "EuAndreh <eu@euandre.org>", + "maintainer-b64": "RXVBbmRyZWggPGV1QGV1YW5kcmUub3JnPg==", "architectures": "any", "type": "tag", "description": "Git extension to generate web permalinks of files in a repository", - "long-description": "It knows about many of the existing code forges, but allows for URL\ntemplate overrides to be used on custom domains or deployments via git\nconfig." + "description-b64": "R2l0IGV4dGVuc2lvbiB0byBnZW5lcmF0ZSB3ZWIgcGVybWFsaW5rcyBvZiBmaWxlcyBpbiBhIHJlcG9zaXRvcnk=", + "long-description": "It knows about many of the existing code forges, but allows for URL\ntemplate overrides to be used on custom domains or deployments via git\nconfig.", + "long-description-b64": "SXQga25vd3MgYWJvdXQgbWFueSBvZiB0aGUgZXhpc3RpbmcgY29kZSBmb3JnZXMsIGJ1dCBhbGxvd3MgZm9yIFVSTAp0ZW1wbGF0ZSBvdmVycmlkZXMgdG8gYmUgdXNlZCBvbiBjdXN0b20gZG9tYWlucyBvciBkZXBsb3ltZW50cyB2aWEgZ2l0CmNvbmZpZy4=" }, { "name": "remembering", @@ -60,10 +66,13 @@ "base-url": "https://euandre.org/s/remembering", "fname": "remembering-v0.1.2.tar.xz", "maintainer": "EuAndreh <eu@euandre.org>", + "maintainer-b64": "RXVBbmRyZWggPGV1QGV1YW5kcmUub3JnPg==", "architectures": "any", "type": "tag", "description": "Add memory to dmenu, fzf and similar tools", - "long-description": "It can wrap such tools to accumulate preferences over time, and\nre-arrange the input according to common picks." + "description-b64": "QWRkIG1lbW9yeSB0byBkbWVudSwgZnpmIGFuZCBzaW1pbGFyIHRvb2xz", + "long-description": "It can wrap such tools to accumulate preferences over time, and\nre-arrange the input according to common picks.", + "long-description-b64": "SXQgY2FuIHdyYXAgc3VjaCB0b29scyB0byBhY2N1bXVsYXRlIHByZWZlcmVuY2VzIG92ZXIgdGltZSwgYW5kCnJlLWFycmFuZ2UgdGhlIGlucHV0IGFjY29yZGluZyB0byBjb21tb24gcGlja3Mu" }, { "name": "td", @@ -77,10 +86,13 @@ "base-url": "https://euandre.org/s/td", "fname": "td-4a8a7a2662c94b2581f587e9a4b81feba4f5e7d8.tar.xz", "maintainer": "EuAndreh <eu@euandre.org>", + "maintainer-b64": "RXVBbmRyZWggPGV1QGV1YW5kcmUub3JnPg==", "architectures": "any", "type": "latest", "description": "Minimalistic bug tracker CLI", - "long-description": "Create and maintain a TODOs.md files as a bug database.\n\nIt is a tool for distributed, offline issue tracking, reified as a simple text\nfile in the repository." + "description-b64": "TWluaW1hbGlzdGljIGJ1ZyB0cmFja2VyIENMSQ==", + "long-description": "Create and maintain a TODOs.md files as a bug database.\n\nIt is a tool for distributed, offline issue tracking, reified as a simple text\nfile in the repository.", + "long-description-b64": "Q3JlYXRlIGFuZCBtYWludGFpbiBhIFRPRE9zLm1kIGZpbGVzIGFzIGEgYnVnIGRhdGFiYXNlLgoKSXQgaXMgYSB0b29sIGZvciBkaXN0cmlidXRlZCwgb2ZmbGluZSBpc3N1ZSB0cmFja2luZywgcmVpZmllZCBhcyBhIHNpbXBsZSB0ZXh0CmZpbGUgaW4gdGhlIHJlcG9zaXRvcnku" }, { "name": "guile-heredoc", @@ -105,8 +117,11 @@ "base-url": "https://euandre.org/s/guile-heredoc", "fname": "guile-heredoc-065435cdce609604e33b879b9be3e81ab89f3e7b.tar.xz", "maintainer": "EuAndreh <eu@euandre.org>", + "maintainer-b64": "RXVBbmRyZWggPGV1QGV1YW5kcmUub3JnPg==", "description": "Guile heredoc syntax", - "long-description": "Guile heredoc syntax long." + "description-b64": "R3VpbGUgaGVyZWRvYyBzeW50YXg=", + "long-description": "Guile heredoc syntax long.", + "long-description-b64": "R3VpbGUgaGVyZWRvYyBzeW50YXggbG9uZy4=" } ] } diff --git a/src/bin/paku b/src/bin/paku index 41b420f..622f8ef 100755 --- a/src/bin/paku +++ b/src/bin/paku @@ -6,7 +6,6 @@ use feature 'signatures'; no warnings ('experimental::signatures'); use Getopt::Std (); use JSON (); -use MIME::Base64 (); use File::Basename (); use Digest::MD5 (); use Digest::SHA (); @@ -372,9 +371,6 @@ sub emit_debian() { my $ver = $pkg->{label} eq 'latest' ? '0.' . $pkg->{version} . '.latest' : $pkg->{version}; $ver =~ s/^v//; - my $maintainer_b64 = MIME::Base64::encode_base64 $pkg->{maintainer}, ''; - my $desc_b64 = MIME::Base64::encode_base64 $pkg->{description}, ''; - my $long_desc_b64 = MIME::Base64::encode_base64 $pkg->{'long-description'}, ''; push @targets, <<~EOF; \$(DIR)/debian-destdir/$pkg->{name}-$pkg->{version}/DEBIAN: \$(DIR)/checkouts/$pkg->{name}-$pkg->{version} @@ -397,14 +393,14 @@ sub emit_debian() { printf 'Essential: no\\n' >> \$\@ printf 'Maintainer: ' >> \$\@ - printf '$maintainer_b64' | base64 -d >> \$\@ + printf '$pkg->{"maintainer-b64"}' | base64 -d >> \$\@ printf '\\n' >> \$\@ printf 'Description: ' >> \$\@ - printf '$desc_b64' | base64 -d >> \$\@ + printf '$pkg->{"description-b64"}' | base64 -d >> \$\@ printf '\\n' >> \$\@ - printf '$long_desc_b64' | \\ + printf '$pkg->{'long-description-b64'}' | \\ base64 -d | \\ sed 's|^\$\$|.|' | \\ sed 's|^| |' >> \$\@ |