when-changed-git: use the latest tagged verison in pkgver
This commit is contained in:
parent
3a69623dc2
commit
d34e6dde0b
@ -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
4
when-changed-git/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*
|
||||
!/PKGBUILD
|
||||
!/.SRCINFO
|
||||
!/.gitignore
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user