[aur-general] How do you deal with pkgver() & version controlled PKGBUILDs?

Ido Rosen ido at kernel.org
Fri Feb 13 03:22:43 UTC 2015

Since this is a git question, it probably belongs on that project's mailing

Anyhow, what I do is use git smudge/clean filters to ignore the line.
Here's an example from a different application of smudge/clean filters of
how to ignore specific lines in a file:


On Thu, Feb 12, 2015 at 10:11 PM, Jashandeep Sohi <
jashandeep.s.sohi at gmail.com> wrote:

> Hi,
> I'm using git to version control my PKGBUILDs. Most of them build
> stable versions of packages using a static pkgver; however, some of
> them build unstable versions (from git, hg, etc.), and make use of the
> pkgver() function to compute a pkgver on build time.
> The problem that I'm having is that whenever I build one of the
> unstable packages,  the value of pkgver in the PKGBUILD get updated by
> pkgver(), which causes Git to think that the file has changed. If I
> ever want to commit changes to the PKGBUILD, I first have to change
> pkgver back to what it was to prevent spurious changes to pkgver to
> committed as well.
> I know I'm being pedantic, but if someone has already thought of a
> solution/fix, that would appreciated.
> Thanks,
> Jashandeep Sohi

More information about the aur-general mailing list