Automatic way to retrieve package sources?

Ask questions about Arch Linux ARM. Please search before making a new topic.

Automatic way to retrieve package sources?

Postby NIPESYSTEMS » Sun May 12, 2019 5:36 pm

Hello World!

In Arch, packages are built via PKGBUILDs and other source files (e.g. patches).
I'm curious how I can retrieve package sources in an automated way, for example with a script.
So far, I've learned that there exists the ArchLinux upstream SVN (browsable at https://www.archlinux.org/packages/) and a GitHub-repo with PKGBUILDs (located at https://github.com/archlinuxarm/PKGBUILDs).

Previously I've used the asp-tool (Arch Linux build source file management tool) which pulls from the ArchLinux package SVN. There exist a flag -a ARCH which lets me specify an architecture. So I tried:
$this->bbcode_second_pass_code('', 'asp -a armv7h export qt5-base')
But it pulled the upstream version of the PKGBUILD and not the patched from https://github.com/archlinuxarm/PKGBUIL ... e/PKGBUILD.

Also I've found https://archlinuxarm.org/packages/ where the correct PKGBUILDs are listed.

Is there a tool like asp which works with the ArchLinuxARM package sources?

Thanks in advance!
Last edited by NIPESYSTEMS on Tue May 14, 2019 6:55 pm, edited 1 time in total.
NIPESYSTEMS
 
Posts: 2
Joined: Sun May 12, 2019 5:13 pm

Re: Automatic way to retrieve package sources

Postby graysky » Sun May 12, 2019 8:52 pm

Don't think a specific one, but they are hosted on github so just clone or download the repo to access them then post process.

https://github.com/archlinuxarm/PKGBUILDs
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Automatic way to retrieve package sources

Postby NIPESYSTEMS » Mon May 13, 2019 4:39 pm

Thanks for your answer!

This is not trivial because then I first need to search in the GitHub-repo for the sources (in all repo folders) and if unsuccessful use something like asp to get the upstream sources.

Another way may be to scrape the contents from https://archlinuxarm.org/packages/. I've tried that but its also difficult to scrape sub-sources (e.g. patches) that match the checksum hash specified in the PKGBUILD.

All these solutions are kinda hacky workarounds with corner cases... Maybe there is a better way for this since the ArchLinuxARM webpage achieves this somehow (is the source somewhere available?).
NIPESYSTEMS
 
Posts: 2
Joined: Sun May 12, 2019 5:13 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 15 guests