mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-25 00:34:10 +00:00
apkbuild-cpan: use $pkgver in source url
replace litteral version string with $pkgver in source url
This commit is contained in:
parent
67181962bf
commit
0238acc51d
@ -107,7 +107,7 @@ sub write_apkbuild {
|
||||
pkgname => map_cpan_to_apk($moddata->{distribution}),
|
||||
pkgreal => $moddata->{distribution},
|
||||
pkgver => $moddata->{version},
|
||||
source => $moddata->{download_url},
|
||||
source => $moddata->{download_url} =~ s/$moddata->{version}/\$pkgver/r,
|
||||
);
|
||||
$template =~ s/\[% (.*?) %\]/$repl{$1}/g;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user