apkbuild-cpan.in: tidy up abstract before using it as pkgdesc
This commit is contained in:
parent
0bb1482c3a
commit
37e99da359
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue