aur now workie pretty please
All checks were successful
Lint / shellcheck (push) Successful in 16s
Release Standalone Builder / build (release) Successful in 33s
Release Standalone Builder / publish-aur (release) Successful in 1m7s

This commit is contained in:
2026-03-11 08:36:22 +01:00
parent cea84de242
commit af453ca2ec

View File

@@ -66,25 +66,37 @@ jobs:
- name: Render PKGBUILD and SRCINFO - name: Render PKGBUILD and SRCINFO
run: | run: |
# Get latest release version
VERSION=${GITHUB_REF#refs/tags/v} VERSION=${GITHUB_REF#refs/tags/v}
VERSION=${VERSION#refs/tags/} VERSION=${VERSION#refs/tags/}
# Download the asset
curl -sL -o kewt https://git.krzak.org/N0VA/kewt/releases/download/v${VERSION}/kewt curl -sL -o kewt https://git.krzak.org/N0VA/kewt/releases/download/v${VERSION}/kewt
# Calculate checksum
CHECKSUM=$(sha256sum kewt | awk '{print $1}') CHECKSUM=$(sha256sum kewt | awk '{print $1}')
# Render PKGBUILD
mkdir -p aur-work mkdir -p aur-work
sed -e "s/VERSION_PLACEHOLDER/${VERSION}/g" \ sed -e "s/VERSION_PLACEHOLDER/${VERSION}/g" \
-e "s/SHA256SUM_PLACEHOLDER/${CHECKSUM}/g" \ -e "s/SHA256SUM_PLACEHOLDER/${CHECKSUM}/g" \
packaging/AUR/PKGBUILD.template > aur-work/PKGBUILD packaging/AUR/PKGBUILD.template > aur-work/PKGBUILD
# Generate .SRCINFO cat > aur-work/.SRCINFO << SRCEOF
cd aur-work pkgbase = kewt-bin
makepkg --printsrcinfo > .SRCINFO pkgdesc = A minimalist, 100% POSIX static site generator inspired by werc and kew
pkgver = ${VERSION}
pkgrel = 1
url = https://git.krzak.org/N0VA/kewt
arch = any
license = MIT
depends = sh
provides = kewt
conflicts = kewt
conflicts = kewt-git
source = kewt-bin-${VERSION}.sh::https://git.krzak.org/N0VA/kewt/releases/download/v${VERSION}/kewt
sha256sums = ${CHECKSUM}
pkgname = kewt-bin
SRCEOF
# Remove leading whitespace from heredoc
sed -i 's/^ //' aur-work/.SRCINFO
- name: Publish to AUR - name: Publish to AUR
uses: KSXGitHub/github-actions-deploy-aur@v3.0.1 uses: KSXGitHub/github-actions-deploy-aur@v3.0.1