chore: update PKGBUILD to follow Rust guidelines, use b2sums

This commit is contained in:
2025-12-28 14:49:39 +01:00
parent 01f09b26ff
commit 26d8bab34d

View File

@@ -79,13 +79,16 @@ aur-update:
set -euo pipefail
cd "{{aur_dir}}"
url="https://somegit.dev/Owlibou/owlry"
echo "Updating PKGBUILD to version {{version}}"
sed -i 's/^pkgver=.*/pkgver={{version}}/' PKGBUILD
sed -i 's/^pkgrel=.*/pkgrel=1/' PKGBUILD
# Update checksums
# Update checksums (b2sums)
echo "Updating checksums..."
updpkgsums
b2sum=$(curl -sL "$url/archive/v{{version}}.tar.gz" | b2sum | cut -d' ' -f1)
sed -i "s/^b2sums=.*/b2sums=('$b2sum')/" PKGBUILD
# Generate .SRCINFO
echo "Generating .SRCINFO..."