How to download PKGBUILD of official packages?

Development on core packages and the distribution goes on in here.

How to download PKGBUILD of official packages?

Postby Malvineous » Sat Aug 21, 2021 8:19 am

I've been asked to try out a patch for ffmpeg so I would like to download the PKGBUILD and other files and recompile them with the patch applied.

The package is located at https://archlinuxarm.org/packages/armv6h/ffmpeg however I cannot see how I download the package files! On the main Arch Linux distro I can view the files and click the "Raw" button which gives me a link like this, which I can pass to wget: https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/ffmpeg/trunk/PKGBUILD

I can't see the equivalent link for the ARM version. It looks like the only way is to copy and paste the files, which of course fails for .patch files because the browser doesn't always maintain the correct tabs/spaces.

How can I get a direct URL for the PKGBUILD and other associated files that I can pass to wget or curl to download?
Malvineous
 
Posts: 40
Joined: Sat Mar 11, 2017 1:45 pm

Re: How to download PKGBUILD of official packages?

Postby graysky » Sat Aug 21, 2021 11:14 am

https://github.com/archlinuxarm/PKGBUIL ... tra/ffmpeg

Modify the PKGBUILD with the patches you want and build it with makepkg. The PKGBUILD is just a standardized shell script. See: https://wiki.archlinux.org/title/PKGBUILD
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: How to download PKGBUILD of official packages?

Postby Malvineous » Sun Aug 22, 2021 2:35 am

Ah, many thanks! Would it be possible to get the Github links added to https://archlinuxarm.org/packages/ for easier access?
Malvineous
 
Posts: 40
Joined: Sat Mar 11, 2017 1:45 pm


Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 6 guests