apkbuild-cpan: add detection for perl modules with native code
so we get arch set properly
This commit is contained in:
parent
9c8f411ab3
commit
f6a74379ad
|
@ -249,6 +249,10 @@ sub do_depends {
|
|||
$text =~ s/^pkgdesc=\"([^\"]*)\"$/pkgdesc=\"$abstract\"/mg or
|
||||
die "Can't find cpandepends line in APKBUILD";
|
||||
}
|
||||
if (length(`find $metaprefix -name '*.xs'`)) {
|
||||
$text =~ s/^arch=\"([^\"]*)\"$/arch="all"/mg or
|
||||
die "Can't find arch line in APKBUILD";
|
||||
}
|
||||
if ($license ne 'unknown') {
|
||||
$text =~ s/^license=\"([^\"]*)\"$/license=\"$license\"/mg or
|
||||
die "Can't find license line in APKBUILD";
|
||||
|
|
Loading…
Reference in New Issue