From f0ce5d2f46988fc894ef4ffadf91ddc59ecfe708 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 29 Mar 2023 08:52:10 -0300 Subject: src/bin/paku.in: Parameterize Alpine subpackages via paku.lock --- src/bin/paku.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/bin') diff --git a/src/bin/paku.in b/src/bin/paku.in index b7b06d7..adcba3e 100755 --- a/src/bin/paku.in +++ b/src/bin/paku.in @@ -504,6 +504,14 @@ sub emit_alpine() { my $d = $ARGV[0] or die 'Missing "src/alpine/" directory'; my $json = load_json(); for my $pkg (@{$json->{packages}}) { + my @subpackages = (); + if ($pkg->{manpages}) { + push @subpackages, "$pkg->{name}-doc"; + } + if ($pkg->{i18n}) { + push @subpackages, "$pkg->{name}-lang"; + } + my $date = $pkg->{date} =~ s/-//gr; my $ver = $pkg->{label} eq 'latest' ? "0.0.1_git$date" : $pkg->{version}; my $dir = "$d/$pkg->{name}" . ( @@ -524,7 +532,7 @@ sub emit_alpine() { makedepends='' checkdepends='' install='' - subpackages='$pkg->{name}-doc' + subpackages='@subpackages' source='$pkg->{url}' builddir="\$srcdir/$pkg->{name}-$pkg->{version}" -- cgit v1.2.3