diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-12-09 18:12:20 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-12-09 18:12:20 +0100 |
commit | 50d1779cbd24c02dc5edbcd0fd74adf940101f5e (patch) | |
tree | 84fed4c10130470fc62bfb5edf5537f88e1280b1 /preps | |
parent | 6ea252f1fe8ac6a20f009f8bf7bba61660798fea (diff) | |
download | genpkg-50d1779cbd24c02dc5edbcd0fd74adf940101f5e.tar.gz genpkg-50d1779cbd24c02dc5edbcd0fd74adf940101f5e.tar.xz |
Put $pkgver into pkgbuild when setting _ddir
Allows for easier manual updates later on
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'preps')
-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, ); |