Commit 0238acc5 authored by Natanael Copa's avatar Natanael Copa

apkbuild-cpan: use $pkgver in source url

replace litteral version string with $pkgver in source url
parent 67181962
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment