diff options
Diffstat (limited to 'src/bin')
-rwxr-xr-x | src/bin/paku | 10 |
1 files changed, 3 insertions, 7 deletions
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|^| |' >> \$\@ |