Package Details: monav-light-git 1:0.1+6+r40.20160309.489ef8f-1

Git Clone URL: https://aur.archlinux.org/monav-light-git.git (read-only, click to copy)
Package Base: monav-light-git
Description: A lightweight and platform independent offline routing software that works on pre-processed OpenStreetMap data and uses JSON for input and output.
Upstream URL: https://github.com/M4rtinK/monav-light/
Licenses: GPL3
Conflicts: monav, monav-client, monav-light
Provides: monav, monav-client, monav-light=0.1+6+r40.20160309.489ef8f
Replaces: monav-light<=0.1+6+r40.20160309.489ef8f
Submitter: dreieck
Maintainer: dreieck
Last Packager: dreieck
Votes: 4
Popularity: 0.000004
First Submitted: 2016-10-14 08:46
Last Updated: 2019-05-15 14:15

Latest Comments

dreieck commented on 2019-05-15 14:11

pkgver() should be changed such that it produces a monotoneously increasing version. Now, when the "main version" stays constant, a new git commit can result in a decreasing version number, since the commit hash is directly following the "main version".

You could use something like commit count: git rev-list --count HEAD and date of last commit: git log -n 1 --format=tformat:%ci | awk '{print $1}' | tr -d '-'

e.g.:

  _ver=<how_you_determine_the_Main_Version_right_now>
  _rev="$(git rev-list --count HEAD)"
  _hash="$(git rev-parse --short HEAD)"
  _date="$(git log -n 1 --format=tformat:%ci | awk '{print $1}' | tr -d '-')"

  if [ -n "${_ver}" ]; then
    printf '%s' "${_ver}+r${_rev}.${_date}.${_hash}"
  fi