[aur-general] SVN package, pkgver() and SRCDEST

Rafael Ferreira josephgbr at archlinux.info
Mon Apr 8 16:23:24 EDT 2013


Hi there.

I notice that if you have SRCDEST set in makepkg.conf, working in 'src/' 
folder with Subversion doesn't seem to work just like 'git log -1 ....' 
or 'git describe | ....', as it seems that 'src/' is simply a 'svn 
export' copy of $SRCDEST (e.g.: /home/foobar/sources).

In pcsx2-svn [1], I'm using the following function to accomplish the 
task of getting pkgver dynamically:

pkgver () {
svnversion "${SRCDEST:-$srcdir}"/$pkgname
}

Any opinions or better solution to get pkgver?

[1] https://aur.archlinux.org/packages/pcsx2-svn/

Rafael Ferreira


More information about the aur-general mailing list