diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/bin/paku.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bin/paku.in b/src/bin/paku.in index 7c19dbb..db28cc9 100755 --- a/src/bin/paku.in +++ b/src/bin/paku.in @@ -403,7 +403,13 @@ sub emit_debian() { next if $pkg->{architectures} ne 'any'; - push @debs, "\t\$(DIR)/debian/$pkg->{name}_$pkg->{version}_all.deb \\\n"; + + my $deb_name = "$pkg->{name}_" . ( + $pkg->{label} eq 'latest' ? 'latest' : $pkg->{version} + ) . "_all.deb"; + my $deb_path = "\$(DIR)/debian/$deb_name"; + + push @debs, "\t$deb_path \\\n"; my $ver = $pkg->{label} eq 'latest' ? '0.' . $pkg->{version} . '.latest' : $pkg->{version}; $ver =~ s/^v//; @@ -445,7 +451,7 @@ sub emit_debian() { \$(DIR)/builddirs/$pkg->{name}-$pkg->{version}.deb: \$(DIR)/builddirs/$pkg->{name}-$pkg->{version}/DEBIAN/control dpkg-deb --build \$(DIR)/builddirs/$pkg->{name}-$pkg->{version} - \$(DIR)/debian/$pkg->{name}_$pkg->{version}_all.deb: \$(DIR)/builddirs/$pkg->{name}-$pkg->{version}.deb + $deb_path: \$(DIR)/builddirs/$pkg->{name}-$pkg->{version}.deb mkdir -p \$(\@D) cp \$(DIR)/builddirs/$pkg->{name}-$pkg->{version}.deb \$\@ |