Commit 54cc09caa7

54cc09caa7344c42fe1a722b160dc677656433cf

parent: b7894ba276

Unsigned

Wraient <wraient.911@gmail.com> · 2024-12-18 18:01 UTC

Update: update pkg build

Layout: unified · split

PKGBUILD +14 −11
@@ -1,23 +1,26 @@
1# Maintainer: Wraient <rushikeshwastaken@gmail.com> 1# Maintainer: Wraient <rushikeshwastaken@gmail.com>
2pkgname='curd' 2pkgname='curd'
3pkgver=0.0.7 3pkgver=1.0.3
4pkgrel=1 4pkgrel=2
5pkgdesc="Watch anime in CLI with AniList Tracking, Discord RPC, Intro/Outro/Filler/Recap Skipping, etc." 5pkgdesc="Watch anime in CLI with AniList Tracking, Discord RPC, Intro/Outro/Filler/Recap Skipping, etc."
6arch=("x86_64") 6arch=('x86_64')
7url="https://github.com/Wraient/curd" 7url="https://github.com/Wraient/curd"
8license=('GPL') 8license=('GPL')
9depends=('mpv' 'rofi' 'ueberzugpp') 9depends=('mpv' 'rofi' 'ueberzugpp')
10source=("curd::https://github.com/Wraient/curd/releases/download/${pkgver}/curd") 10source=("$pkgname::https://github.com/Wraient/curd/releases/latest/download/curd")
11sha256sums=('SKIP') 11sha256sums=('SKIP')
12 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() { 13package() {
21 # Install the precompiled binary into /usr/bin 14 # Install the precompiled binary into /usr/bin
22 install -Dm755 "$srcdir/curd" "$pkgdir/usr/bin/curd" 15 install -Dm755 "$srcdir/curd" "$pkgdir/usr/bin/curd"
23} 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}