From baae85a874b1828a27396fdb9e73c61a7e431408 Mon Sep 17 00:00:00 2001 From: Sebastiaan Lokhorst Date: Tue, 6 Jun 2017 23:30:43 +0200 Subject: [PATCH] Improve pkgver function (show latest tag) --- .SRCINFO | 4 ++-- PKGBUILD | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 5aa6a16..01372da 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Mon Sep 26 09:54:00 UTC 2016 +# Tue Jun 6 21:30:04 UTC 2017 pkgbase = motion-git pkgdesc = A software motion detector which grabs images from video4linux devices and/or from webcams - pkgver = release.3.4.1.r105.g7692717 + pkgver = release.4.0.r178.ga801f19 pkgrel = 1 url = https://motion-project.github.io/ arch = i686 diff --git a/PKGBUILD b/PKGBUILD index 53a8720..39a0cae 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,7 +3,7 @@ pkgname=motion-git _pkgname=motion -pkgver=release.3.4.1.r105.g7692717 +pkgver=release.4.0.r178.ga801f19 pkgrel=1 pkgdesc="A software motion detector which grabs images from video4linux devices and/or from webcams" arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') @@ -18,7 +18,7 @@ md5sums=('SKIP') pkgver() { cd "${_pkgname}" - git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() {