Commit aea62b8fcc

aea62b8fccf18612563fd7287e7a33478399f39c

parent: c7d414bd75

Unsigned

Wraient <wraient.911@gmail.com> · 2026-04-18 17:03 UTC

Fix YAML-safe PKGBUILD generation in AUR workflow

Layout: unified · split

.github/workflows/update-aur.yml +19 −19
@@ -137,25 +137,25 @@ jobs:
137 run: | 137 run: |
138 set -euo pipefail 138 set -euo pipefail
139 139
140 cat > PKGBUILD <<EOF 140 {
141# Maintainer: Wraient <rushikeshwastaken@gmail.com> 141 printf '%s\n' '# Maintainer: Wraient <rushikeshwastaken@gmail.com>'
142pkgname='curd' 142 printf '%s\n' "pkgname='curd'"
143pkgver=${{ steps.release.outputs.version }} 143 printf '%s\n' "pkgver=${{ steps.release.outputs.version }}"
144pkgrel=1 144 printf '%s\n' 'pkgrel=1'
145pkgdesc="Watch anime in CLI with AniList Tracking, Discord RPC, Intro/Outro/Filler/Recap Skipping, etc." 145 printf '%s\n' 'pkgdesc="Watch anime in CLI with AniList Tracking, Discord RPC, Intro/Outro/Filler/Recap Skipping, etc."'
146arch=('x86_64') 146 printf '%s\n' "arch=('x86_64')"
147url="https://github.com/Wraient/curd" 147 printf '%s\n' 'url="https://github.com/Wraient/curd"'
148license=('GPL') 148 printf '%s\n' "license=('GPL')"
149depends=('mpv' 'rofi' 'ueberzugpp') 149 printf '%s\n' "depends=('mpv' 'rofi' 'ueberzugpp')"
150provides=('curd') 150 printf '%s\n' "provides=('curd')"
151conflicts=('curd') 151 printf '%s\n' "conflicts=('curd')"
152source=("https://github.com/Wraient/curd/releases/download/v\${pkgver}/curd-linux-x86_64") 152 printf '%s\n' 'source=("https://github.com/Wraient/curd/releases/download/v${pkgver}/curd-linux-x86_64")'
153sha256sums=('${{ steps.release.outputs.sha256 }}') 153 printf '%s\n' "sha256sums=('${{ steps.release.outputs.sha256 }}')"
154 154 printf '\n'
155package() { 155 printf '%s\n' 'package() {'
156 install -Dm755 "\$srcdir/curd-linux-x86_64" "\$pkgdir/usr/bin/curd" 156 printf '%s\n' ' install -Dm755 "$srcdir/curd-linux-x86_64" "$pkgdir/usr/bin/curd"'
157} 157 printf '%s\n' '}'
158EOF 158 } > PKGBUILD
159 159
160 # Fail fast if checksum/source/install-target drift. 160 # Fail fast if checksum/source/install-target drift.
161 grep -q '^source=(' PKGBUILD 161 grep -q '^source=(' PKGBUILD