Commit c7d414bd75
Unsigned
Layout: unified · split
.github/workflows/update-aur.yml +29 −4
| @@ -137,10 +137,32 @@ jobs: | ||
| 137 | 137 | run: | |
| 138 | 138 | set -euo pipefail |
| 139 | 139 | |
| 140 | sed -i "s/^pkgver=.*/pkgver=${{ steps.release.outputs.version }}/" PKGBUILD | |
| 141 | sed -i "s/^pkgrel=.*/pkgrel=1/" PKGBUILD | |
| 142 | sed -i "s|^source=.*|source=(\"https://github.com/Wraient/curd/releases/download/v\${pkgver}/curd-linux-x86_64\")|" PKGBUILD | |
| 143 | sed -i "s|^sha256sums=.*|sha256sums=('${{ steps.release.outputs.sha256 }}')|" PKGBUILD | |
| 140 | cat > PKGBUILD <<EOF | |
| 141 | # Maintainer: Wraient <rushikeshwastaken@gmail.com> | |
| 142 | pkgname='curd' | |
| 143 | pkgver=${{ steps.release.outputs.version }} | |
| 144 | pkgrel=1 | |
| 145 | pkgdesc="Watch anime in CLI with AniList Tracking, Discord RPC, Intro/Outro/Filler/Recap Skipping, etc." | |
| 146 | arch=('x86_64') | |
| 147 | url="https://github.com/Wraient/curd" | |
| 148 | license=('GPL') | |
| 149 | depends=('mpv' 'rofi' 'ueberzugpp') | |
| 150 | provides=('curd') | |
| 151 | conflicts=('curd') | |
| 152 | source=("https://github.com/Wraient/curd/releases/download/v\${pkgver}/curd-linux-x86_64") | |
| 153 | sha256sums=('${{ steps.release.outputs.sha256 }}') | |
| 154 | ||
| 155 | package() { | |
| 156 | install -Dm755 "\$srcdir/curd-linux-x86_64" "\$pkgdir/usr/bin/curd" | |
| 157 | } | |
| 158 | EOF | |
| 159 | ||
| 160 | # Fail fast if checksum/source/install-target drift. | |
| 161 | grep -q '^source=(' PKGBUILD | |
| 162 | grep -q '^sha256sums=(' PKGBUILD | |
| 163 | grep -q 'curd-linux-x86_64' PKGBUILD | |
| 164 | grep -q 'install -Dm755 "\$srcdir/curd-linux-x86_64" "\$pkgdir/usr/bin/curd"' PKGBUILD | |
| 165 | bash -n PKGBUILD | |
| 144 | 166 | |
| 145 | 167 | set +u |
| 146 | 168 | # shellcheck disable=SC1091 |
| @@ -180,6 +202,9 @@ jobs: | ||
| 180 | 202 | for pkg in "${pkgname[@]-}"; do [ -n "$pkg" ] && printf 'pkgname = %s\n' "$pkg"; done |
| 181 | 203 | } > .SRCINFO |
| 182 | 204 | |
| 205 | grep -Fq "pkgver = ${{ steps.release.outputs.version }}" .SRCINFO | |
| 206 | grep -Fq "sha256sums = ${{ steps.release.outputs.sha256 }}" .SRCINFO | |
| 207 | ||
| 183 | 208 | - name: Commit and push to AUR |
| 184 | 209 | working-directory: aur-curd |
| 185 | 210 | env: |