From 50d1779cbd24c02dc5edbcd0fd74adf940101f5e Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 9 Dec 2017 18:12:20 +0100 Subject: Put $pkgver into pkgbuild when setting _ddir Allows for easier manual updates later on Signed-off-by: Florian Pritz --- preps/perl.d/perl-dist | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'preps') 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, ); -- cgit v1.2.3-24-g4f1b