Clean up pkgver some more (strip 'release-')

This commit is contained in:
Sebastiaan Lokhorst
2017-06-06 23:41:40 +02:00
parent baae85a874
commit bfd7a8909f
2 changed files with 5 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
# Tue Jun 6 21:30:04 UTC 2017
# Tue Jun 6 21:41:31 UTC 2017
pkgbase = motion-git
pkgdesc = A software motion detector which grabs images from video4linux devices and/or from webcams
pkgver = release.4.0.r178.ga801f19
pkgver = 4.0.r178.ga801f19
pkgrel = 1
url = https://motion-project.github.io/
arch = i686

View File

@@ -3,7 +3,7 @@
pkgname=motion-git
_pkgname=motion
pkgver=release.4.0.r178.ga801f19
pkgver=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,8 @@ md5sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
# cutting off 'release-' prefix that presents in the git tag
git describe --long --tags | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {