Improve pkgver function (show latest tag)
This commit is contained in:
4
.SRCINFO
4
.SRCINFO
@@ -1,8 +1,8 @@
|
|||||||
# Generated by mksrcinfo v8
|
# Generated by mksrcinfo v8
|
||||||
# Mon Sep 26 09:54:00 UTC 2016
|
# Tue Jun 6 21:30:04 UTC 2017
|
||||||
pkgbase = motion-git
|
pkgbase = motion-git
|
||||||
pkgdesc = A software motion detector which grabs images from video4linux devices and/or from webcams
|
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
|
pkgrel = 1
|
||||||
url = https://motion-project.github.io/
|
url = https://motion-project.github.io/
|
||||||
arch = i686
|
arch = i686
|
||||||
|
4
PKGBUILD
4
PKGBUILD
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
pkgname=motion-git
|
pkgname=motion-git
|
||||||
_pkgname=motion
|
_pkgname=motion
|
||||||
pkgver=release.3.4.1.r105.g7692717
|
pkgver=release.4.0.r178.ga801f19
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A software motion detector which grabs images from video4linux devices and/or from webcams"
|
pkgdesc="A software motion detector which grabs images from video4linux devices and/or from webcams"
|
||||||
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
|
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
|
||||||
@@ -18,7 +18,7 @@ md5sums=('SKIP')
|
|||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "${_pkgname}"
|
cd "${_pkgname}"
|
||||||
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
Reference in New Issue
Block a user