fix pkgver issue

This commit is contained in:
agus-balles 2024-10-16 23:23:03 -03:00
parent 9eb6229c65
commit b600d6092b
2 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,6 @@
pkgbase = kew-git
pkgdesc = A command-line music player
pkgver = v2.8.2.90f5f14
pkgver = v3.0.0rc1.40354d4
pkgrel = 1
url = https://github.com/ravachol/kew
arch = x86_64

5
PKGBUILD Executable file → Normal file
View file

@ -1,7 +1,7 @@
# Maintainer: <agustinballesteros04@gmail.com>
pkgname=kew-git
pkgrel=1
pkgver=v2.8.2.90f5f14
pkgver=v3.0.0rc1.40354d4
pkgdesc="A command-line music player"
arch=('x86_64')
url="https://github.com/ravachol/kew"
@ -18,7 +18,7 @@ pkgver() {
cd "$srcdir/kew"
local tag=$(git tag | sort | tail -n1)
local commit_hash=$(git rev-parse --short HEAD)
echo "${tag}.${commit_hash}"
echo "${tag}.${commit_hash}" | sed 's/[:\/\-]//g'
}
build() {
@ -32,3 +32,4 @@ package() {
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "$srcdir/kew/docs/kew-manpage.mdoc" "$pkgdir/usr/share/man/man1/kew.1"
}