Skip to content

Commit

Permalink
Update PKGBUILD to reflect restic official version numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
scoddy committed Dec 27, 2015
1 parent 1f1b8e1 commit 3601933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Contributor: Alexander Neumann <alexander@bumpern.de>
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')
Expand All @@ -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() {
Expand Down

0 comments on commit 3601933

Please sign in to comment.