diff options
author | hashworks | 2020-04-22 12:48:47 +0200 |
---|---|---|
committer | hashworks | 2020-04-22 12:48:47 +0200 |
commit | 239c46dde147ccf59b25c46f7b212c87d0cabe6a (patch) | |
tree | 4d52173f1547013ff6a2ee284d387c9c7797384b | |
parent | 40905a639f59941ed1f9b98a3912446bfc97cfa7 (diff) | |
download | aur-239c46dde147ccf59b25c46f7b212c87d0cabe6a.tar.gz |
Use git tag versioning
-rwxr-xr-x | .SRCINFO | 2 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rwxr-xr-x | PKGBUILD | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -1,6 +1,6 @@ pkgbase = goaccess-git pkgdesc = GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser. - pkgver = r2991.906e048 + pkgver = v0.8.r2629.ge0385cc pkgrel = 1 url = https://goaccess.io arch = any diff --git a/.gitignore b/.gitignore index b079b5f2ef53..4bdffe1b0ab8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -goaccess-git-r2991.906e048-1-any.pkg.tar.lzo +*.tar.* goaccess/ @@ -2,7 +2,7 @@ pkgname=goaccess-git pkgrel=1 -pkgver=r2991.906e048 +pkgver=v0.8.r2629.ge0385cc pkgdesc='GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.' url='https://goaccess.io' license=('MIT') @@ -17,7 +17,7 @@ md5sums=('SKIP') pkgver() { cd "goaccess" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { |