Until now, the version of the packages have been computed using the git version of the PKGBUILDs repo, i.e. by using the number of commits in the packaged branch of the source repo git rev-list --count HEAD and the HEAD's hash git rev-parse --short HEAD.
The consequence is that all the packages have the same version and that that version is the version of the pkgbuilds repo, not any of the version of the "true" source repos.
This commit proposes to replace the global version by one different version per package, automaticcaly.
IMPLEMENTATION DETAILS:
The idea is to use the -C flag of git and define the repo name as a constant in the PKGBUILD, e.g.
for the a2n-s-scripts package, the two following git diffs would have to be applied:
Until now, the version of the packages have been computed using the
git
version of thePKGBUILD
s repo, i.e. by using the number of commits in the packaged branch of the source repogit rev-list --count HEAD
and the HEAD's hashgit rev-parse --short HEAD
.The consequence is that all the packages have the same version and that that version is the version of the
pkgbuilds
repo, not any of the version of the "true" source repos.This commit proposes to replace the global version by one different version per package, automaticcaly.
IMPLEMENTATION DETAILS: The idea is to use the
-C
flag ofgit
and define the repo name as a constant in thePKGBUILD
, e.g. for thea2n-s-scripts
package, the two followinggit diff
s would have to be applied:and