diff options
author | Christoph Gysin | 2017-10-01 23:30:13 +0300 |
---|---|---|
committer | Christoph Gysin | 2017-10-01 23:30:27 +0300 |
commit | d4ae8c0142b43a5d0dd7dcc312ea5e8da4b0a5b8 (patch) | |
tree | 9d7d2ae8d1b85067b0828694092143892e4f7852 /PKGBUILD | |
parent | 5c941eb89727b22d0adb9529e2f07ded2abfb4d0 (diff) | |
download | aur-d4ae8c0142b43a5d0dd7dcc312ea5e8da4b0a5b8.tar.gz |
fix version
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ pkgname=protobuf-rust-git -pkgver=1.0.24.511 +pkgver=1.4.1.12.gdf787b8 pkgrel=1 pkgdesc="Rust Support for Google's protocol buffers" arch=('x86_64' 'i686') @@ -15,7 +15,7 @@ sha256sums=('SKIP') pkgver() { cd "$pkgname" - echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD) + git describe --tags | sed -e 's/-/./g' -e 's/^v//' } build() { |