From 360193320f29f000b4e8b7e8c53954d3d19e9648 Mon Sep 17 00:00:00 2001 From: Florian Daniel Date: Sun, 27 Dec 2015 22:05:05 +0100 Subject: [PATCH] Update PKGBUILD to reflect restic official version numbering --- doc/PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/PKGBUILD b/doc/PKGBUILD index 6ab5853ef..b6e4ae7c2 100644 --- a/doc/PKGBUILD +++ b/doc/PKGBUILD @@ -4,7 +4,7 @@ # Contributor: Alexander Neumann options=(!strip) pkgname=restic-git -pkgver=r702.c143f8c +pkgver=v0.1.0.r172.g1f1b8e1 pkgrel=1 pkgdesc="restic is a program that does backups right." arch=('i686' 'x86_64') @@ -21,7 +21,7 @@ importpath='github.com/restic/restic' pkgver() { cd "$pkgname" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"; + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() {