Skip to content
Snippets Groups Projects
Commit f6a74379 authored by Kiyoshi Aman's avatar Kiyoshi Aman Committed by Timo Teräs
Browse files

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

so we get arch set properly
parent 9c8f411a
No related branches found
No related tags found
No related merge requests found
...@@ -249,6 +249,10 @@ sub do_depends { ...@@ -249,6 +249,10 @@ sub do_depends {
$text =~ s/^pkgdesc=\"([^\"]*)\"$/pkgdesc=\"$abstract\"/mg or $text =~ s/^pkgdesc=\"([^\"]*)\"$/pkgdesc=\"$abstract\"/mg or
die "Can't find cpandepends line in APKBUILD"; 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') { if ($license ne 'unknown') {
$text =~ s/^license=\"([^\"]*)\"$/license=\"$license\"/mg or $text =~ s/^license=\"([^\"]*)\"$/license=\"$license\"/mg or
die "Can't find license line in APKBUILD"; die "Can't find license line in APKBUILD";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment