From 90cb90349e144b81a4a849e66b9d10d1280b3e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asger=20Weirs=C3=B8e?= Date: Wed, 30 Sep 2026 21:23:34 +0200 Subject: [PATCH] Obfuscate the maintainer address, and allow PKGBUILD-only releases The Maintainer line uses the usual AUR form (asger at weircon dot dk) instead of a raw address that spam crawlers harvest. The AUR workflow can now also be started by hand with a version and pkgrel, so a fix to the PKGBUILD alone can be published without a new upstream release. Claude-Session: https://claude.ai/code/session_012LCTmU2ewo8tnM1dByYAoG --- .gitea/workflows/aur-publish.yml | 28 +++++++++++++++++++++++----- packaging/aur/PKGBUILD | 2 +- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/aur-publish.yml b/.gitea/workflows/aur-publish.yml index b0f5f3b..ad9ebf4 100644 --- a/.gitea/workflows/aur-publish.yml +++ b/.gitea/workflows/aur-publish.yml @@ -4,6 +4,17 @@ on: push: tags: - 'v*' + # Re-publish without a new upstream release, e.g. a PKGBUILD-only fix: + # run it on master with the released version and the next pkgrel. + workflow_dispatch: + inputs: + version: + description: 'Released version to package, without the v (e.g. 1.2.3)' + required: true + pkgrel: + description: 'Package release number' + required: true + default: '1' jobs: aur: @@ -19,9 +30,16 @@ jobs: - name: Extract version from tag id: version run: | - TAG="${GITHUB_REF#refs/tags/v}" - echo "version=$TAG" >> "$GITHUB_OUTPUT" - echo "Publishing pi3-smart-workspace v$TAG to AUR" + if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then + VERSION="${{ inputs.version }}" + PKGREL="${{ inputs.pkgrel }}" + else + VERSION="${GITHUB_REF#refs/tags/v}" + PKGREL=1 + fi + echo "version=$VERSION" >> "$GITHUB_OUTPUT" + echo "pkgrel=$PKGREL" >> "$GITHUB_OUTPUT" + echo "Publishing $VERSION-$PKGREL to AUR" - name: Configure SSH for AUR run: | @@ -59,7 +77,7 @@ jobs: run: | cp packaging/aur/PKGBUILD aur-pkg/PKGBUILD sed -i "s/^pkgver=.*/pkgver=${{ steps.version.outputs.version }}/" aur-pkg/PKGBUILD - sed -i "s/^pkgrel=.*/pkgrel=1/" aur-pkg/PKGBUILD + sed -i "s/^pkgrel=.*/pkgrel=${{ steps.version.outputs.pkgrel }}/" aur-pkg/PKGBUILD - name: Update checksums and regenerate .SRCINFO run: | @@ -78,7 +96,7 @@ jobs: echo "No changes — nothing to push." exit 0 fi - git commit -m "Update to ${{ steps.version.outputs.version }}" + git commit -m "Update to ${{ steps.version.outputs.version }}-${{ steps.version.outputs.pkgrel }}" git push -u origin master # Mirror the same PKGBUILD to https://asger.weirsøe.dk/tarballz/, the diff --git a/packaging/aur/PKGBUILD b/packaging/aur/PKGBUILD index dc7503b..94f17f0 100644 --- a/packaging/aur/PKGBUILD +++ b/packaging/aur/PKGBUILD @@ -1,4 +1,4 @@ -# Maintainer: Asger Geel Weirsoe +# Maintainer: Asger Geel Weirsoe pkgname=pi3-smart-workspace pkgver=0.0.0 pkgrel=1