correct pkgver logic

This commit is contained in:
Cedric Girard 2016-05-18 11:03:01 +02:00
parent 3ea8ed2b94
commit f34af14949
2 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,8 @@
# Generated by mksrcinfo v8
# Wed May 18 09:02:52 UTC 2016
pkgbase = autojump-git pkgbase = autojump-git
pkgdesc = A faster way to navigate your filesystem from the command line pkgdesc = A faster way to navigate your filesystem from the command line
pkgver = release.v21.7.1.191.g113a84f pkgver = 22.3.0.r14.g9a6e286
pkgrel = 1 pkgrel = 1
url = http://github.com/joelthelion/autojump url = http://github.com/joelthelion/autojump
arch = any arch = any

View file

@ -4,7 +4,7 @@
# Contributor: William Ting <william.h.tingATgmail.com> # Contributor: William Ting <william.h.tingATgmail.com>
pkgname=autojump-git pkgname=autojump-git
pkgver=release.v21.7.1.191.g113a84f pkgver=22.3.0.r14.g9a6e286
pkgrel=1 pkgrel=1
pkgdesc="A faster way to navigate your filesystem from the command line" pkgdesc="A faster way to navigate your filesystem from the command line"
arch=(any) arch=(any)
@ -23,7 +23,7 @@ _gitname="autojump"
pkgver() { pkgver() {
cd ${_gitname} cd ${_gitname}
git describe --always | sed 's|-|.|g' git describe --long --tags | sed 's/^release\-v//;s/\([^-]*-g\)/r\1/;s/-/./g'
} }
prepare() { prepare() {