PKGBUILD

23 lines · 782 bytes

 1# Maintainer: Wraient <rushikeshwastaken@gmail.com>
 2pkgname='curd'
 3pkgver=0.0.7
 4pkgrel=1
 5pkgdesc="Watch anime in CLI with AniList Tracking, Discord RPC, Intro/Outro/Filler/Recap Skipping, etc."
 6arch=("x86_64")
 7url="https://github.com/Wraient/curd"
 8license=('GPL')
 9depends=('mpv' 'rofi' 'ueberzug')
10source=("curd::https://github.com/Wraient/curd/releases/download/${pkgver}/curd")
11sha256sums=('SKIP')
12
13pkgver() {
14    # Fetch the latest release tag from GitHub and set it as pkgver
15    local latest_release
16    latest_release=$(curl -s https://api.github.com/repos/Wraient/curd/releases/latest | grep -Po '"tag_name": "\K.*?(?=")')
17    echo "$latest_release"
18}
19
20package() {
21    # Install the precompiled binary into /usr/bin
22    install -Dm755 "$srcdir/curd" "$pkgdir/usr/bin/curd"
23}