From e053f7d5d5e4b1f75dce8cbca21e1cd0bb4cc144 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Tue, 30 Dec 2025 06:29:56 +0100 Subject: [PATCH] refactor(justfile): simplify AUR update for unified versioning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed _srcver handling since all packages now share the same version. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- justfile | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/justfile b/justfile index 11029f3..0c2d9ed 100644 --- a/justfile +++ b/justfile @@ -295,9 +295,8 @@ aur-update-pkg pkg: fi url="https://somegit.dev/Owlibou/owlry" - core_ver="{{version}}" - # Determine crate version + # Determine crate version (unified versioning: all crates share same version) case "{{pkg}}" in owlry-essentials|owlry-tools|owlry-widgets|owlry-full) # Meta-packages have no crate, keep current version @@ -322,16 +321,8 @@ aur-update-pkg pkg: sed -i "s/^pkgver=.*/pkgver=$crate_ver/" PKGBUILD sed -i 's/^pkgrel=.*/pkgrel=1/' PKGBUILD - # Update _srcver for plugins/runtimes (they download from core version tag) - if grep -q "^_srcver=" PKGBUILD; then - echo " _srcver=$core_ver" - sed -i "s/^_srcver=.*/_srcver=$core_ver/" PKGBUILD - # Update checksum using core version - echo "Updating checksums (from v$core_ver)..." - b2sum=$(curl -sL "$url/archive/v$core_ver.tar.gz" | b2sum | cut -d' ' -f1) - sed -i "s/^b2sums=.*/b2sums=('$b2sum')/" PKGBUILD - elif grep -q "^source=" PKGBUILD; then - # Core package uses pkgver for source + # Update checksums (unified versioning: all packages use same version) + if grep -q "^source=" PKGBUILD; then echo "Updating checksums..." b2sum=$(curl -sL "$url/archive/v$crate_ver.tar.gz" | b2sum | cut -d' ' -f1) sed -i "s/^b2sums=.*/b2sums=('$b2sum')/" PKGBUILD