You are not logged in.

#1 2008-09-06 16:03:50

ould
Member
Registered: 2007-05-22
Posts: 121

Is it possible to auto increment the version using a version file?

Hi everyone,

I am trying to make one of my first PKGBUILDS(well two actually, one is done though). It is for a python program so the PKGBUILD is very straightforward and I have it working. What I am wondering though is if it is possible to auto increment the version based on a text file containing the latest version number. The developer places a file at the same location as the tarball call "latest_version" and this would contain the latest version number in plain text like so:

0.4.83

Or whatever the version number happens to be. So I am wondering if rather than having to check the latest version number and then edit my PKGBUILD manually everytime a version is released is there a way to do this automatically within the PKGBUILD. I was thinking something along the lines of:

pkgver=`cat latest_version`

But since it has to download latest_version first it doesn't seem to work.

Any thoughts or hints?

Thanks,

Kevin

Offline

#2 2008-09-06 16:28:57

foutrelis
Developer/TU
From: Athens, Greece
Registered: 2008-07-28
Posts: 618
Website

Re: Is it possible to auto increment the version using a version file?

I believe it would be safer if you update the package manually each time upstream releases a new version. This way you can check for possible incompatibilities or you may need to make modifications to the PKGBUILD for it to build.

Moreover, I am pretty certain that the AUR software won't be able to parse the package version if you put "pkgver=`cat latest_version`".

Offline

Board footer

Powered by FluxBB