correct pkgver function

This commit is contained in:
Cedric Girard 2016-12-01 18:05:46 +01:00
parent 2019782e94
commit 9981270eb6
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
pkgbase = libcec-git
pkgdesc = Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter
pkgver = 3.1.0.25.g62b8520
pkgver = 4.0.0.3.r0.g209884d
pkgrel = 1
epoch = 1
url = https://github.com/Pulse-Eight/libcec

View file

@ -2,7 +2,7 @@
pkgname=libcec-git
epoch=1
pkgver=3.1.0.25.g62b8520
pkgver=4.0.0.3.r0.g209884d
pkgrel=1
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter"
arch=('i686' 'x86_64')
@ -18,7 +18,7 @@ md5sums=('SKIP')
pkgver() {
cd "$srcdir"/libcec
git describe --tags | sed 's|libcec-||;s|-|.|g'
git describe --long --tags | sed 's!^libcec-!!;s!\([^-]*-g\)!r\1!;s!-!.!g'
}
build() {