diff options
author | Jeremy Deininger | 2016-03-06 01:28:55 -0800 |
---|---|---|
committer | Jeremy Deininger | 2016-03-06 01:28:55 -0800 |
commit | 0d981d3dd8e65d4aa58dae2095a641d451ad3e54 (patch) | |
tree | 7085e69e0e2cc51b33dd80a6ef882a654cf913c3 | |
parent | eb163df07d6e36d774d755570732892c31cc959f (diff) | |
download | aur-0d981d3dd8e65d4aa58dae2095a641d451ad3e54.tar.gz |
fixing git pkgver
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 20 insertions, 2 deletions
@@ -15,3 +15,20 @@ pkgbase = update-ssh-keys pkgname = update-ssh-keys +# Generated by makepkg 5.0.0 +# Sun Mar 6 09:28:14 UTC 2016 +pkgbase = update-ssh-keys + pkgdesc = SSH Key helper binary from github.com/coreos/update-ssh-keys + pkgver = r21.206b3aa + pkgrel = 1 + url = https://github.com/coreos/update-ssh-keys + arch = x86_64 + license = apache + makedepends = go + provides = update-ssh-keys + replaces = update-ssh-keys + source = update-ssh-keys::git+https://github.com/coreos/update-ssh-keys + md5sums = SKIP + +pkgname = update-ssh-keys + @@ -1,5 +1,5 @@ pkgname=update-ssh-keys -pkgver=0.0.1 +pkgver=r21.206b3aa pkgrel=1 pkgdesc="SSH Key helper binary from github.com/coreos/update-ssh-keys" arch=('x86_64') @@ -13,9 +13,10 @@ md5sums=('SKIP') pkgver() { cd "$pkgname" - git describe --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } + build() { cd "$pkgname" ./build |