diff options
author | trizen | 2020-07-15 17:50:56 +0300 |
---|---|---|
committer | trizen | 2020-07-15 17:50:56 +0300 |
commit | ef65e06f287cd92bb41b194fee25259c0b0af509 (patch) | |
tree | f9d82e0c00d134eb8207e968243306df377e6bbf | |
parent | d06f116da1870d63f00ec488c382117d640021c5 (diff) | |
download | aur-ef65e06f287cd92bb41b194fee25259c0b0af509.tar.gz |
Use `git describe --long` in pkgver()
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -1,6 +1,6 @@ pkgbase = straw-viewer-git pkgdesc = Application for searching and streaming videos from YouTube, using the API of invidio.us (fork of youtube-viewer). - pkgver = 0.0.6 + pkgver = 0.0.6.r0.g7332262 pkgrel = 1 url = https://github.com/trizen/straw-viewer arch = any @@ -2,7 +2,7 @@ _pkgname=straw-viewer pkgname=straw-viewer-git -pkgver=0.0.6 +pkgver=0.0.6.r0.g7332262 pkgrel=1 pkgdesc="Application for searching and streaming videos from YouTube, using the API of invidio.us (fork of youtube-viewer)." arch=('any') @@ -32,8 +32,8 @@ source=("git+https://github.com/trizen/${_pkgname}.git") sha256sums=('SKIP') pkgver() { - cd "$_pkgname" - git describe --always | sed -e 's|-|.|g' + cd "$_pkgname" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { |