You are not logged in.
Hi,
I do not understand under which circumstances a Github (or Gitlab or Bitbucket etc.) repo is cloned by makepkg.
(1) I created AUR packages for some of the tools that I had written. In the PKGBUILDs, the source array contains the url of the Github repo, and the repo is cloned by makepkg. It seems that this happens automatically since I did not do an explicite git clone in the PKGBUILD.
(2) I am currently working on a Calamares-based installer for Arch. As part of this effort, I am packaging Calamares. The url of the Calamares Github repo is contained in the source array of the PKGBUILD, but the repo is not cloned automatically (and so, I do this explicitely in the prepare() function).
I don't understand the different behavior of makepkg in the cases (1) and (2). Can anybody explain?
Thanks,
mipi
Last edited by mipi (2019-06-15 14:02:59)
Offline
Show the source array for 1 and 2.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Source arrays:
(1): source=("git://github.com/mipimipi/$_pkgname.git")
(2): source=("https://github.com/calamares/calamares.git")
Offline
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
@Trilby: Thanks for the link. But why isn't the repo cloned in case (2)? the url is compatible to the format that is described in the documentation.
Offline
No, it isn't.
vcs+ is needed for URLs that do not reflect the VCS type, e.g. git+http://some_repo.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Yep, that was it. Cloning works also in case (2) if I replace "https" by "git+http".
Thanks.
Offline
or "git+https://" or "git://" would work. No specific form is needed, but if the url protocol itself doesn't indicate what downloader to use, you need to specify it before a "+".
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline