[aur-general] SVN package, pkgver() and SRCDEST
Daniel Wallace
danielwallace at gtmanfred.com
Mon Apr 8 16:35:16 EDT 2013
On Mon, Apr 08, 2013 at 05:23:24PM -0300, Rafael Ferreira wrote:
> 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
you could just cd $pkgnaem and not include $SRCDEST or $srcdir, because
before pkgver, makepkg places you in the correct directory to just cd
into the svn checkout.
--
Daniel Wallace
Archlinux Trusted User (gtmanfred)
Georgia Institute of Technology
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/aur-general/attachments/20130408/be8ee544/attachment.asc>
More information about the aur-general
mailing list