diff options
-rwxr-xr-x | preps/perl.d/perl-dist | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/preps/perl.d/perl-dist b/preps/perl.d/perl-dist index 0310fa4..db2809c 100755 --- a/preps/perl.d/perl-dist +++ b/preps/perl.d/perl-dist @@ -388,6 +388,8 @@ sub main chsrcdir(catdir($dir, 'src'), $file); my $distdir = extractdist($file); + my $ddir = $distdir; + $ddir =~ s/-[^-]+$/-\$pkgver/; my $meta = loadmeta($distdir); my $desc = $meta->{'abstract'}; @@ -402,7 +404,7 @@ sub main 'pkgver' => $ver, 'pkgdesc' => $meta->{'abstract'}, 'arch' => (xsdist($distdir) ? ['i686', 'x86_64'] : 'any'), - '_ddir' => $distdir, + '_ddir' => $ddir, %$deps, ); |