when-changed-git: use the latest tagged verison in pkgver
This commit is contained in:
parent
01b33651ca
commit
96c9050a2d
@ -1,6 +1,6 @@
|
|||||||
pkgbase = when-changed-git
|
pkgbase = when-changed-git
|
||||||
pkgdesc = Execute a command when a file is changed.
|
pkgdesc = Execute a command when a file is changed.
|
||||||
pkgver = 0.r62.7a2df66
|
pkgver = 0.3.0.r37.g85d7acc
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://github.com/joh/when-changed
|
url = https://github.com/joh/when-changed
|
||||||
arch = any
|
arch = any
|
||||||
@ -15,4 +15,3 @@ pkgbase = when-changed-git
|
|||||||
sha256sums = SKIP
|
sha256sums = SKIP
|
||||||
|
|
||||||
pkgname = when-changed-git
|
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
|
# Maintainer: rhssk
|
||||||
pkgname=when-changed-git
|
pkgname=when-changed-git
|
||||||
pkgver=0.r62.7a2df66
|
pkgver=0.3.0.r37.g85d7acc
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Execute a command when a file is changed."
|
pkgdesc="Execute a command when a file is changed."
|
||||||
arch=('any')
|
arch=('any')
|
||||||
@ -15,7 +15,7 @@ sha256sums=('SKIP')
|
|||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd when-changed
|
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() {
|
package() {
|
||||||
|
Loading…
Reference in New Issue
Block a user