apkbuild-cpan: use $pkgver in source url

replace litteral version string with $pkgver in source url
This commit is contained in:
Natanael Copa 2019-03-21 12:52:30 +01:00
parent 67181962bf
commit 0238acc51d

View File

@ -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;