paru icon indicating copy to clipboard operation
paru copied to clipboard

Question: Configuring paru to pull PKGBUILDs from a custom repository

Open RaafatTurki opened this issue 3 years ago • 17 comments

I want to have a custom repo that only holds PKGBUILDs (and related files if any) and have paru treat it like the aur, is this even possible? if so how?

Currently paru has an AurUrl config which defaults to aur.archlinux.org, I don't want to lose that when I add my own repo which makes me believe even if this is possible I will end up sacrificing the official aur

With that said if a PR to make AurUrl accept more than one url is all whats needed I will give it a shot.

RaafatTurki avatar Apr 07 '22 23:04 RaafatTurki

Unless your custom repo is also an AUR instance that won't work. Paru only supports the AUR.

Morganamilo avatar Apr 08 '22 11:04 Morganamilo

Could you clarify what's an "AUR instance" please.

RaafatTurki avatar Apr 08 '22 21:04 RaafatTurki

The aur website.

Morganamilo avatar Apr 08 '22 22:04 Morganamilo

So this is a milestone for v2, which is still a while off. But as of now this is basically fully functional in paru-git

Add:

[REPONAME]
URL = https://github.com/user/pkgbuilds/

To your paru.conf and there you have it

You will need to run paru -Sya so sync these repos.

You can then install packages with paru -S foo or paru -S REPONAME/foo.

There's a few extra options to configure this.

  • Depth configures how deeply to recurse to find pkgbuilds, the default is 3.
  • SkipReview can be specified in the repo to skip the review process for just that repo`.
  • GenerateSrcinfo force generates srcinfo files, this is for is a repo has outdated srcinfo files.
  • Path can be specified instead of Git to point to a local file path.

There's no documentation on this as of yet as it's very much beta, but feel free to test it out.

Morganamilo avatar Sep 03 '22 20:09 Morganamilo

This works pretty nicely! An important feature it's missing currently is searching.

Also Git isn't a valid option, I've had to replace it with URL

RaafatTurki avatar Sep 04 '22 12:09 RaafatTurki

Yeah whoops, forgot the config opinion. The options are URL/Path

Searching should work too. Does it not? Have you synced the repo first?

Morganamilo avatar Sep 04 '22 12:09 Morganamilo

Actually searching is done but not the interactive search paru foo

Morganamilo avatar Sep 04 '22 12:09 Morganamilo

Yes I did paru -Sya

I've made this repo for testing

[potato]
URL = https://github.com/RaafatTurki/potato-pkgbuilds
GenerateSrcinfo

paru -S fake-fonts works but none of paru -Ss fake-fonts paru fake-fonts does

RaafatTurki avatar Sep 04 '22 12:09 RaafatTurki

I think it has to do with the generated .SRCINFO, pushing them into the repo is the smart move anyways.

RaafatTurki avatar Sep 04 '22 12:09 RaafatTurki

pushed .SRCINFO files into repo and removed GenerateSrcinfo from config, same issue

RaafatTurki avatar Sep 04 '22 12:09 RaafatTurki

image

Morganamilo avatar Sep 04 '22 12:09 Morganamilo

Works for me. Are you sure you're on the latest git?

Morganamilo avatar Sep 04 '22 12:09 Morganamilo

Also realising -Sya also does a pacman -Sy when not using local repos... needa fix that.

Morganamilo avatar Sep 04 '22 12:09 Morganamilo

Ah, it's not in the --bottomup code path whoops. Like I said, very beta :P

Morganamilo avatar Sep 04 '22 13:09 Morganamilo

Hahah, you're right. I can do without searching until that gets fixed (also don't forget the interactive search paru foo)

All on all, very cool feature! Fell free to ping me when testing is needed.

RaafatTurki avatar Sep 04 '22 13:09 RaafatTurki

That one is fixed now at least :P

Morganamilo avatar Sep 04 '22 15:09 Morganamilo

interactive search and --upgrade menu are still todo but other than that it's all there.

Morganamilo avatar Sep 04 '22 15:09 Morganamilo