From 9981270eb60521d5aa6d15a65b4cebe1fe1e0a16 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Thu, 1 Dec 2016 18:05:46 +0100 Subject: [PATCH] correct pkgver function --- .SRCINFO | 2 +- PKGBUILD | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index eda79fc..b3d5513 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -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 diff --git a/PKGBUILD b/PKGBUILD index 87b9ce2..1c1a892 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -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() {