apkbuild-cpan.in: issue with versions containing "v" and module-build
@ncopa assign to me I will address:
perl-test-mockmodule's version includes a v and it used the Build.PL script from Module::Build
generating the $metaprefix assumes no embedded v requires something like this to work around and is likely needed in several places as the meta.yml is not read properly either:
@@ -222,7 +223,12 @@
my $package_func;
my $text = read_file "APKBUILD";
- if (-e "$metaprefix/Build.PL" ) {
+ my $builddir = $apkbuild->{'builddir'};
+ $builddir =~ s/\$srcdir\/\$_pkgreal/src\/$apkbuild->{'_pkgreal'}/;
+ $builddir =~ s/\$pkgver/$apkbuild->{'pkgver'}/;
+ if (-e "$metaprefix/Build.PL" || -e "$builddir/Build.PL") {
$build_func = <<'EOF';
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')