diff options
author | Christoph Haag | 2017-06-15 23:35:32 +0200 |
---|---|---|
committer | Christoph Haag | 2017-06-15 23:37:45 +0200 |
commit | d36bc2029512c947f02e7756573da25696e2e8fb (patch) | |
tree | ab8cf0589db998a42398741f32d51a580733edf3 | |
parent | dfa6cdad872b64160ad807f5b05641d9eebe3bd4 (diff) | |
download | aur-d36bc2029512c947f02e7756573da25696e2e8fb.tar.gz |
change pkgver() to the version with tag
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = openvr-git pkgdesc = API and runtime that allows access to VR hardware from multiple vendors. Contains API and samples. The runtime is under SteamVR in Tools on Steam. - pkgver = 46.bcac1bf + pkgver = 1.0.8.r0.gbcac1bf pkgrel = 1 url = https://github.com/ValveSoftware/openvr arch = x86_64 @@ -1,5 +1,5 @@ pkgname=openvr-git -pkgver=46.bcac1bf +pkgver=1.0.8.r0.gbcac1bf pkgrel=1 pkgdesc="API and runtime that allows access to VR hardware from multiple vendors. Contains API and samples. The runtime is under SteamVR in Tools on Steam." arch=('x86_64') @@ -19,9 +19,11 @@ md5sums=('SKIP' pkgver() { cd "$srcdir/openvr" - echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) + #echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) + git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } + prepare() { cd "$srcdir/openvr" } |