From 115ca7be673dbf7626a33438a87a72f30729f8f0 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 25 Mar 2023 18:10:17 -0300 Subject: src/bin/paku.in: Name .deb files with "latest" instead of commit hash --- src/bin/paku.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') 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 \$\@ -- cgit v1.2.3