You are not logged in.

#1 2010-11-26 16:14:57

zebulon
Member
Registered: 2008-10-20
Posts: 359

Query regarding VCS PKGBUILDs

Hi,

I have a question regarding the VCS PKGBUILDs, in particular Mercurial ones. I saw on the prototypes that there is an explicit checkout of a hg branch using hg clone in the build() section. However, recently many authors do not include this. For instance: http://aur.archlinux.org/packages/clay- … g/PKGBUILD or https://aur.archlinux.org/packages/iowo … g/PKGBUILD. How does that work? Is it a new standard?

Thanks for your insights.

Offline

#2 2010-11-26 22:28:02

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,410
Website

Re: Query regarding VCS PKGBUILDs

It turns out that makepkg is really shit at handling VCS packages... tongue

In the hg case, it does a full checkout to get the up to date pkgver anyway so there is no need to do it again.

Offline

#3 2010-11-28 14:22:59

zebulon
Member
Registered: 2008-10-20
Posts: 359

Re: Query regarding VCS PKGBUILDs

Thanks. So it does the checkout because it detects some keywords, such as _hgroot and _hgrepo? Is that the way it works?

Offline

#4 2010-11-28 15:20:08

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,410
Website

Re: Query regarding VCS PKGBUILDs

Yes.  It detects the variables listed in the PKGBUILD man page and goes into VCS mode.

Offline

#5 2010-11-29 08:52:35

zebulon
Member
Registered: 2008-10-20
Posts: 359

Re: Query regarding VCS PKGBUILDs

Thanks. Does that mean that the prototypes that come in pacman package are obsolete (they specifically checkout/clone the VCS repository)?

Offline

Board footer

Powered by FluxBB