yay icon indicating copy to clipboard operation
yay copied to clipboard

Allow building from offical repositories

Open DUOLabs333 opened this issue 2 years ago • 6 comments

Is your feature request related to a problem? Please describe.

I use Arch Linux ARM, which lags behind Arch Linux sometimes. However, their PKGBUILD is automatically updated when Arch's does. So, I would like if I could build yay -S <package>.

Describe the solution you'd like

If the name of the package isn't in the AUR, look for the PKGBUILD in the main repository (maybe offer configuration options?) then build it.

Describe alternatives you've considered

Additional context

DUOLabs333 avatar Feb 16 '22 02:02 DUOLabs333

It's not clear to me what is needed. Do you want to (re-)build packages from the official repos yourself for ARM from the x64-Archlinux PKGBUILDs? If that is the case you should have a look at ABS, because yay helps with building AUR packages, not official ones.

I'm not sure what the yay maintainers' stance is on a feature request to support ABS.

grandchild avatar Feb 16 '22 09:02 grandchild

Technically, I want to build from ALARM's repositories, since sometimes it differs from Arch.

DUOLabs333 avatar Feb 16 '22 11:02 DUOLabs333

This is useful in other situations, where you want to customise build flags (e.g. -march=native) without the overhead of spinning up an entry in the AUR.

I'll be digging into more details in a few weeks, but this could help with automating the management of a personal repository down the road, where you want to potentially compile official dependencies against the AUR itself. Somewhat niche, but would have been incredibly useful while we were stuck on GCC 11.1.

antdking avatar Mar 15 '22 11:03 antdking

How does ABS not do all of this?

grandchild avatar Mar 20 '22 06:03 grandchild

@grandchild I wanted to be able to manage both repositories by the same program.

DUOLabs333 avatar Mar 20 '22 22:03 DUOLabs333

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 25 '22 05:07 stale[bot]

yay -G + yay -Bi should allow you to do this behavior (+ .SRCINFO generation)

Jguer avatar Feb 21 '23 02:02 Jguer

This pulls from Arch Linux's repositories, not ALARM's (maybe it should depend on uname?).

DUOLabs333 avatar Mar 22 '23 02:03 DUOLabs333