apkbuild-cpan: add detection for perl modules with native code

so we get arch set properly
This commit is contained in:
Kiyoshi Aman 2011-06-02 14:31:17 +03:00 committed by Timo Teräs
parent 9c8f411ab3
commit f6a74379ad
1 changed files with 4 additions and 0 deletions

View File

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