X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/a328633ffe6558e77dd19460b83b2b731e9bebdc..704ba3690dbc572fd213def56b2fe9ca4189c465:/scripts/metadata.pm?ds=sidebyside diff --git a/scripts/metadata.pm b/scripts/metadata.pm index defa7b934..65ba0b890 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -60,9 +60,11 @@ sub parse_package_metadata($) { $pkg->{src} = $src; $pkg->{makefile} = $makefile; $pkg->{name} = $1; + $pkg->{title} = ""; $pkg->{default} = "m if ALL"; $pkg->{depends} = []; $pkg->{builddepends} = []; + $pkg->{buildtypes} = []; $pkg->{subdir} = $subdir; $pkg->{tristate} = 1; $package{$1} = $pkg; @@ -91,6 +93,8 @@ sub parse_package_metadata($) { /^Depends: \s*(.+)\s*$/ and $pkg->{depends} = [ split /\s+/, $1 ]; /^Build-Only: \s*(.+)\s*$/ and $pkg->{buildonly} = 1; /^Build-Depends: \s*(.+)\s*$/ and $pkg->{builddepends} = [ split /\s+/, $1 ]; + /^Build-Depends\/(\w+): \s*(.+)\s*$/ and $pkg->{"builddepends/$1"} = [ split /\s+/, $2 ]; + /^Build-Types:\s*(.+)\s*$/ and $pkg->{buildtypes} = [ split /\s+/, $1 ]; /^Category: \s*(.+)\s*$/ and do { $pkg->{category} = $1; defined $category{$1} or $category{$1} = {};