Have a look at the "Using VCS Sources" part of the PKGBUILD(5) man-page:
https://jlk.fjfi.cvut.cz/arch/manpages/man/PKGBUILD.5#USING_VCS_SOURCES

You can just specify the source as this:
`git+https://.../mypackage.git#branch=develop`

That way you directly get the contents of `develop` delivered to your sourcedir…

On Fri, Jul 24, 2020 at 9:40 AM Dario Pellegrini via aur-requests
<[email protected]> wrote:
>
> Uh, how do you switch to a particular upstream branch from which to pick some 
> files without git checkout?
>
> On Fri, 24 Jul 2020, 00:37 , <[email protected]> wrote:
>>
>> katt [1] filed a deletion request for openscad-mcad-dev-git [2]:
>>
>> git checkout in package()
>>
>> [1] https://aur.archlinux.org/account/katt/
>> [2] https://aur.archlinux.org/pkgbase/openscad-mcad-dev-git/

-- 
Knut Ahlers
Software & Infrastructure Developer

Web & Blog: https://ahlers.me/
GPG-Key: 0xD34BE99E

Reply via email to