diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/alpine/td/APKBUILD | 2 | ||||
-rwxr-xr-x | src/bin/paku.in | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/alpine/td/APKBUILD b/src/alpine/td/APKBUILD index 3112b35..829107e 100644 --- a/src/alpine/td/APKBUILD +++ b/src/alpine/td/APKBUILD @@ -10,7 +10,7 @@ depends='' makedepends='' checkdepends='' install='' -subpackages='td-doc' +subpackages='td-doc td-lang' source='https://euandre.org/git/td/snapshot/td-4a8a7a2662c94b2581f587e9a4b81feba4f5e7d8.tar.xz' builddir="$srcdir/td-4a8a7a2662c94b2581f587e9a4b81feba4f5e7d8" 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}" |