From 76297ced5cfc48c091acef966250779713e28713 Mon Sep 17 00:00:00 2001 From: sunrisepeak Date: Thu, 25 Jun 2026 19:20:13 +0800 Subject: [PATCH] fix(aur): use plain local source for mcpp.sh wrapper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The AUR validation hook rejects the `dest::localfile` rename syntax for a local source file: remote: error: missing source file: mcpp-0.0.65.sh::mcpp.sh remote: error: hook declined to update refs/heads/master That rename form is only valid for URL sources; local files must be listed plainly. (The cache-busting rationale was bogus — makepkg doesn't cache local files.) Switch mcpp-bin to `source=("mcpp.sh")`, matching the mcpp source package, and regenerate .SRCINFO + the update.sh template. --- scripts/aur/mcpp-bin/.SRCINFO | 2 +- scripts/aur/mcpp-bin/PKGBUILD | 6 +++--- scripts/aur/update.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/aur/mcpp-bin/.SRCINFO b/scripts/aur/mcpp-bin/.SRCINFO index 0550c68..6fc656b 100644 --- a/scripts/aur/mcpp-bin/.SRCINFO +++ b/scripts/aur/mcpp-bin/.SRCINFO @@ -10,7 +10,7 @@ pkgbase = mcpp-bin provides = mcpp conflicts = mcpp options = !strip - source = mcpp-0.0.65.sh::mcpp.sh + source = mcpp.sh sha256sums = SKIP source_x86_64 = mcpp-0.0.65-linux-x86_64.tar.gz::https://github.com/mcpp-community/mcpp/releases/download/v0.0.65/mcpp-0.0.65-linux-x86_64.tar.gz sha256sums_x86_64 = 0d1d16aae05e4d7c59a00a2621abc4b99421b9821d2145c139fabf95fcf93409 diff --git a/scripts/aur/mcpp-bin/PKGBUILD b/scripts/aur/mcpp-bin/PKGBUILD index 954c8c7..8c5ced2 100644 --- a/scripts/aur/mcpp-bin/PKGBUILD +++ b/scripts/aur/mcpp-bin/PKGBUILD @@ -22,8 +22,8 @@ _relbase="https://github.com/mcpp-community/mcpp/releases/download/v${pkgver}" source_x86_64=("mcpp-${pkgver}-linux-x86_64.tar.gz::${_relbase}/mcpp-${pkgver}-linux-x86_64.tar.gz") source_aarch64=("mcpp-${pkgver}-linux-aarch64.tar.gz::${_relbase}/mcpp-${pkgver}-linux-aarch64.tar.gz") -# Shared, arch-independent files (versioned to invalidate makepkg's cache on bump). -source=("mcpp-${pkgver}.sh::mcpp.sh") +# Shared, arch-independent local file (the per-user launcher). +source=("mcpp.sh") sha256sums=('SKIP') sha256sums_x86_64=('0d1d16aae05e4d7c59a00a2621abc4b99421b9821d2145c139fabf95fcf93409') @@ -40,7 +40,7 @@ package() { install -Dm755 "${_src}/registry/bin/xlings" "${pkgdir}/opt/mcpp/registry/bin/xlings" # Per-user launcher on PATH (sets MCPP_HOME / MCPP_VENDORED_XLINGS). - install -Dm755 "${srcdir}/mcpp-${pkgver}.sh" "${pkgdir}/usr/bin/mcpp" + install -Dm755 "${srcdir}/mcpp.sh" "${pkgdir}/usr/bin/mcpp" install -Dm644 "${_src}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 "${_src}/README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md" diff --git a/scripts/aur/update.sh b/scripts/aur/update.sh index 67ef2a5..f215ccb 100755 --- a/scripts/aur/update.sh +++ b/scripts/aur/update.sh @@ -90,7 +90,7 @@ pkgbase = mcpp-bin provides = mcpp conflicts = mcpp options = !strip - source = mcpp-${VER}.sh::mcpp.sh + source = mcpp.sh sha256sums = SKIP source_x86_64 = mcpp-${VER}-linux-x86_64.tar.gz::${reldl}/mcpp-${VER}-linux-x86_64.tar.gz sha256sums_x86_64 = ${x86}