apkbuild-cpan.in: tidy up abstract before using it as pkgdesc

This commit is contained in:
Celeste 2023-12-21 07:42:39 +00:00 committed by Timothy Legge
parent 0bb1482c3a
commit 37e99da359
1 changed files with 3 additions and 0 deletions

View File

@ -576,6 +576,9 @@ sub do_depends {
my $text = read_file "APKBUILD";
if ( $abstract && $abstract ne 'unknown' ) {
$abstract =~ s/"/\\"/g;
$abstract =~ s/[.\s]+$//;
$text =~ s/^pkgdesc=\"([^\"]*)\"$/pkgdesc=\"$abstract\"/mg
or die "Can't find pkgdesc line in APKBUILD";
}