Skip to content

Wayland Bongocat v1.3.2 #3

Wayland Bongocat v1.3.2

Wayland Bongocat v1.3.2 #3

Workflow file for this run

name: Publish to AUR
on:
release:
types: [published]
jobs:
aur-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Generate PKGBUILD
run: |
VERSION="${{ github.event.release.tag_name }}"
VERSION="${VERSION#v}" # Remove 'v' prefix if present
# Download the release tarball to calculate sha256sum
curl -sL "https://github.com/${{ github.repository }}/archive/refs/tags/${{ github.event.release.tag_name }}.tar.gz" -o release.tar.gz
SHA256=$(sha256sum release.tar.gz | cut -d' ' -f1)
cat > PKGBUILD << 'PKGBUILD_EOF'
# Maintainer: saatvik333 <saatvik333sharma@gmail.com>
pkgname=bongocat
pkgver=${VERSION}
pkgrel=1
pkgdesc="Delightful Wayland overlay that displays an animated bongo cat reacting to keyboard input"
arch=('x86_64' 'aarch64')
url="https://github.com/saatvik333/wayland-bongocat"
license=('MIT')
depends=('wayland')
makedepends=('wayland-protocols' 'make' 'gcc')
source=("$pkgname-$pkgver.tar.gz::https://github.com/saatvik333/wayland-bongocat/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('${SHA256}')
build() {
cd "wayland-bongocat-$pkgver"
make release
}
package() {
cd "wayland-bongocat-$pkgver"
install -Dm755 build/bongocat "$pkgdir/usr/bin/bongocat"
install -Dm755 scripts/find_input_devices.sh "$pkgdir/usr/bin/bongocat-find-devices"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 bongocat.conf.example "$pkgdir/usr/share/doc/$pkgname/bongocat.conf.example"
}
PKGBUILD_EOF
# Replace placeholders with actual values
sed -i "s/\${VERSION}/${VERSION}/g" PKGBUILD
sed -i "s/\${SHA256}/${SHA256}/g" PKGBUILD
- name: Publish to AUR
uses: KSXGitHub/github-actions-deploy-aur@v3.0.1
with:
pkgname: bongocat
pkgbuild: ./PKGBUILD
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
commit_message: "Update to version ${{ github.event.release.tag_name }}"
force_push: true