aboutsummaryrefslogtreecommitdiff
path: root/src/bin/paku.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/paku.in')
-rwxr-xr-xsrc/bin/paku.in10
1 files changed, 9 insertions, 1 deletions
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}"