Skip to content

Commit

Permalink
Update: update pkg build
Browse files Browse the repository at this point in the history
  • Loading branch information
Wraient committed Dec 18, 2024
1 parent b7894ba commit 54cc09c
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
# Maintainer: Wraient <rushikeshwastaken@gmail.com>
pkgname='curd'
pkgver=0.0.7
pkgrel=1
pkgver=1.0.3
pkgrel=2
pkgdesc="Watch anime in CLI with AniList Tracking, Discord RPC, Intro/Outro/Filler/Recap Skipping, etc."
arch=("x86_64")
arch=('x86_64')
url="https://github.com/Wraient/curd"
license=('GPL')
depends=('mpv' 'rofi' 'ueberzugpp')
source=("curd::https://github.com/Wraient/curd/releases/download/${pkgver}/curd")
source=("$pkgname::https://github.com/Wraient/curd/releases/latest/download/curd")
sha256sums=('SKIP')

pkgver() {
# Fetch the latest release tag from GitHub and set it as pkgver
local latest_release
latest_release=$(curl -s https://api.github.com/repos/Wraient/curd/releases/latest | grep -Po '"tag_name": "\K.*?(?=")')
echo "$latest_release"
}

package() {
# Install the precompiled binary into /usr/bin
install -Dm755 "$srcdir/curd" "$pkgdir/usr/bin/curd"
}

pkgver() {
local ver
ver=$(curl -s --fail "https://api.github.com/repos/Wraient/curd/releases/latest" | jq -r '.tag_name' | sed 's/^v//')
if [ -n "$ver" ]; then
echo "$ver"
else
echo "$pkgver"
fi
}

0 comments on commit 54cc09c

Please sign in to comment.