aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-25 18:10:17 -0300
committerEuAndreh <eu@euandre.org>2023-03-25 18:10:17 -0300
commit115ca7be673dbf7626a33438a87a72f30729f8f0 (patch)
tree0dc79a93033162850124ca8dd9860dd9d928d4a4 /src
parentMakefile: Put "public/" in the list of $(derived-assets) (diff)
downloadpackage-repository-115ca7be673dbf7626a33438a87a72f30729f8f0.tar.gz
package-repository-115ca7be673dbf7626a33438a87a72f30729f8f0.tar.xz
src/bin/paku.in: Name .deb files with "latest" instead of commit hash
Diffstat (limited to 'src')
-rwxr-xr-xsrc/bin/paku.in10
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 \$\@