summaryrefslogtreecommitdiff
path: root/apkbuild-cpan.in
diff options
context:
space:
mode:
Diffstat (limited to 'apkbuild-cpan.in')
-rwxr-xr-xapkbuild-cpan.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/apkbuild-cpan.in b/apkbuild-cpan.in
index f5c88d9..792c736 100755
--- a/apkbuild-cpan.in
+++ b/apkbuild-cpan.in
@@ -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";