when-changed-git: use the latest tagged verison in pkgver

This commit is contained in:
Rihards Skuja 2023-02-19 13:09:33 +02:00
parent 01b33651ca
commit 96c9050a2d
Signed by: rhssk
GPG Key ID: BABE7EB1F38C7EF6
3 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
pkgbase = when-changed-git
pkgdesc = Execute a command when a file is changed.
pkgver = 0.r62.7a2df66
pkgver = 0.3.0.r37.g85d7acc
pkgrel = 1
url = https://github.com/joh/when-changed
arch = any
@ -15,4 +15,3 @@ pkgbase = when-changed-git
sha256sums = SKIP
pkgname = when-changed-git

4
when-changed-git/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*
!/PKGBUILD
!/.SRCINFO
!/.gitignore

View File

@ -1,6 +1,6 @@
# Maintainer: rhssk
pkgname=when-changed-git
pkgver=0.r62.7a2df66
pkgver=0.3.0.r37.g85d7acc
pkgrel=1
pkgdesc="Execute a command when a file is changed."
arch=('any')
@ -15,7 +15,7 @@ sha256sums=('SKIP')
pkgver() {
cd when-changed
echo "0.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {