From 69822b4304168cbaa6856eba375def2514152908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Davi=20da=20Silva=20B=C3=B6ger?= Date: Tue, 31 Jan 2017 17:00:09 -0200 Subject: [PATCH] Fix version number generation in pkgver() --- .SRCINFO | 6 +++--- PKGBUILD | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 2df8aa8..7073210 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Tue Jan 31 18:55:29 UTC 2017 +# Tue Jan 31 18:59:22 UTC 2017 pkgbase = bbswitch-dkms-git pkgdesc = kernel module allowing to switch dedicated graphics card on Optimus laptops, dkms version - pkgver = v0.8.r0.g0c38f97 - pkgrel = 2 + pkgver = 0.8.r0.g0c38f97 + pkgrel = 1 url = http://github.com/Bumblebee-Project/bbswitch arch = i686 arch = x86_64 diff --git a/PKGBUILD b/PKGBUILD index 1555c4c..44d98f0 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,8 +4,8 @@ # Contributor : abbradar pkgname=bbswitch-dkms-git -pkgver=v0.8.r0.g0c38f97 -pkgrel=2 +pkgver=0.8.r0.g0c38f97 +pkgrel=1 pkgdesc="kernel module allowing to switch dedicated graphics card on Optimus laptops, dkms version" arch=('i686' 'x86_64') url="http://github.com/Bumblebee-Project/bbswitch" @@ -22,7 +22,7 @@ sha256sums=("SKIP") pkgver() { cd "$srcdir/${_gitname}" - git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' + git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' } build() {