PKGBUILD
26 lines · 761 bytes
1# Maintainer: Wraient <rushikeshwastaken@gmail.com>
2pkgname='curd'
3pkgver=1.0.3
4pkgrel=2
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' 'ueberzugpp')
10source=("$pkgname::https://github.com/Wraient/curd/releases/latest/download/curd")
11sha256sums=('SKIP')
12
13package() {
14 # Install the precompiled binary into /usr/bin
15 install -Dm755 "$srcdir/curd" "$pkgdir/usr/bin/curd"
16}
17
18pkgver() {
19 local ver
20 ver=$(curl -s --fail "https://api.github.com/repos/Wraient/curd/releases/latest" | jq -r '.tag_name' | sed 's/^v//')
21 if [ -n "$ver" ]; then
22 echo "$ver"
23 else
24 echo "$pkgver"
25 fi
26}