aur: sha512sum mismatch for usage-bin package
Closed this issue · 1 comments
mundry commented
Hi,
the checksum for the usage-bin package currently produces a mismatch.
The checksum is calculated for the source archive (similar to the usage pkg), instead of the archive containing the prebuild binary.
Lines 67 to 68 in 9753b24
However, the checksum needs to be generated from the archive with the prebuild binary referenced in PKGBUILD and .SRCINFO.
Something along the lines of:
diff --git a/tasks/bump-aur b/tasks/bump-aur
index cf6ee88..6b06183 100755
--- a/tasks/bump-aur
+++ b/tasks/bump-aur
@@ -65,7 +65,7 @@ sha512sums = $SHA512
pkgname = usage
EOF
elif [ "$pkgname" == "usage-bin" ]; then
- SHA512=$(curl -fsSL "https://github.com/jdx/usage/archive/$USAGE_VERSION.tar.gz" | sha512sum | awk '{print $1}')
+ SHA512=$(curl -fsSL "https://github.com/jdx/usage/releases/download/$USAGE_VERSION/usage-x86_64-unknown-linux-gnu.tar.gz" | sha512sum | awk '{print $1}')
cat >aur/PKGBUILD <<EOF
# Maintainer: Jeff Dickey <releases-usage at jdx dot dev>