[aur-general] provides version for VCS packages
Jan de Groot
jan at jgc.homeip.net
Thu Dec 3 09:35:59 EST 2009
On Thu, 2009-12-03 at 15:16 +0100, Côme Pruvost wrote:
> Hello !
> It's been some time I'm facing the same problem. When one build a
> package from VCS, one should include the original package name
> (usually $pkgname with -svn -git ... removed) in the provides array so
> packages depending on the program provided can find it.
> For example, if I want to package python-poppler-bzr, I will include
> "provides=('python-poppler')" so desigle can satisfy its own
> But now, imagine that desigle needs a recent version of
> python-poppler, and so it has "depends=('python-poppler>=0.2')".
> Then, makepkg will not detect python-poppler provided by
> python-poppler-bzr because it cannot compare versions.
> One then have to specify the version of the package provided. In case
> of a VCS, it's not always easy because it can change from a revision
> to another. So one need a way to get that version, and use it in the
> provides array.
Solution 4: set PKG_CONFIG_PATH to the location where the package
installs the .pc files. Then issue a nice:
[jan at jan ~]$ pkg-config glib-2.0 --modversion
and you'll have the version without using awk, grep and sed.
More information about the aur-general