Hello, I am not sure if it exists, but if there is an API for the AUR could someone link me to the documentation on it? I am aware there is an rss feed for package updates, but I want to be able to parse information about a package. I assume there isn't and the only way to do it is to clone the repository and parse the .SRCINFO or PKGBUILD file for the information? Any pointers would be useful. Thanks, -- Polarian GPG signature: 0770E5312238C760 Website: https://polarian.dev JID/XMPP: polarian@polarian.dev
On 5/31/23 18:16, Polarian wrote:
I am not sure if it exists, but if there is an API for the AUR could someone link me to the documentation on it?
How about? https://wiki.archlinux.org/title/Aurweb_RPC_interface I believe aurutils [1] uses it. If you were using aurutils, it has queries that go to AUR though that interface... -- Javier [1] https://aur.archlinux.org/packages/aurutils
Hello, Yeah that will work thanks. As a sidenote, what is the best way to check whether a package is within the aur, or official repositories in the most efficient manor. I assume: - Use libalpm to query the databases to look for the packages - If the package is not found, use RPC interface to check the AUR - If not found, throw error For some context, I am thinking of making a build system to autobuild -git packages by hooking to the source repository (such as github) and build every time a commit is pushed, then push it to a custom repository like [polarrepo-gitbuilds] or something. In all honesty it doesn't have much use apart from one or two git packages I hate having to rebuild on a daily basis manually/aur helper, instead I rather just pull it from my server through pacman. Thanks for the help, -- Polarian GPG signature: 0770E5312238C760 Website: https://polarian.dev JID/XMPP: polarian@polarian.dev
Hi, On Thu, Jun 01, 2023 at 12:09:27PM +0100, Polarian wrote:
For some context, I am thinking of making a build system to autobuild -git packages by hooking to the source repository (such as github) and build every time a commit is pushed, then push it to a custom repository like [polarrepo-gitbuilds] or something.
isn't this exactly what aurutils' sync-devel example script does? https://github.com/AladW/aurutils/blob/master/examples/README.md https://github.com/AladW/aurutils/blob/master/examples/sync-devel cheers -- Georg
On 6/1/23 05:43, Georg Pfahler wrote:
isn't this exactly what aurutils' sync-devel example script does?
https://github.com/AladW/aurutils/blob/master/examples/README.md https://github.com/AladW/aurutils/blob/master/examples/sync-devel
cheers
Exactly, in brief, aurutils works by having a local custom repository of your own, and then you can add AUR packages to it, for example, with:
aur sync -S -d <your_repo> <aur_pkg>
And then keep them up to date through:
aur sync -S -d <your_repo> -u <aur_pkg>
You can rebuild your AUR packages through:
aur sync -S -d <your_repo> --no-ver -f <aur_pkg>
You can search for a package through:
aur search [-v] <aur_pkg_pattern>
On pacman.conf, make sure your custom local repo is listed after all official repos, so the AUR packages are picked last. One thing though, it's a good thing to manually search on the packages, although already installed and up to date, to see if they have been orphaned or not, if that's a thing... There's much more to aurutils. Though it's manual. If you were looking for auto notifications, you need something else. If you subscribe to a AUR package notifications, besides the comments on the package you also get update notifications, though depending on the package the comments might be too noisy... -- Javier
Hello, This is not what I want, I want to be able to know where to pull a package, for example if a dependency is within the official repositories, simply pull it from there, otherwise build it from the aur. Otherwise, automatic git builds wouldn't work because an aur dependency would not be pulled in. Thanks, -- Polarian GPG signature: 0770E5312238C760 Website: https://polarian.dev JID/XMPP: polarian@polarian.dev
Jun 1, 2023 13:59:54 Polarian <polarian@polarian.dev>:
I want to be able to know where to pull a package, for example if a dependency is within the official repositories, simply pull it from there, otherwise build it from the aur.
Otherwise, automatic git builds wouldn't work because an aur dependency would not be pulled in.
aurutils already handles dependency resolution. You don't need to reimplement this (otherwise you now have to handle transitive dependencies, etc.). - éclairevoyant
Why not install Yay? It is an air helper, and it sounds like you need help with the AUR. On Thu, Jun 1, 2023, 20:10 é <eclairevoyant9@gmail.com> wrote:
Jun 1, 2023 13:59:54 Polarian <polarian@polarian.dev>:
I want to be able to know where to pull a package, for example if a dependency is within the official repositories, simply pull it from there, otherwise build it from the aur.
Otherwise, automatic git builds wouldn't work because an aur dependency would not be pulled in.
aurutils already handles dependency resolution. You don't need to reimplement this (otherwise you now have to handle transitive dependencies, etc.).
- éclairevoyant
Jun 1, 2023 14:13:45 Evert Vorster <evorster@gmail.com>:
Why not install Yay?
paru and aurutils can do clean chroot builds, yay cannot. - éclairevoyant
Hello Polarian, On Thursday 1 June 2023 13:09:27 CEST Polarian wrote:
For some context, I am thinking of making a build system to autobuild -git packages by hooking to the source repository (such as github) and build every time a commit is pushed, then push it to a custom repository like [polarrepo-gitbuilds] or something.
Maybe you can have a look at how arch4edu [1] does a similar thing. At least for the AUR part. And for keeping the local repo I think you will find paru [2] helpful. I know most people use it as an AUR helper, but it is also very useful to build and test packages, and maintain a local repo. I personally use it to keep a private repo on my desktop PC with the packages I use from AUR, so I don't have to recompile everything on my laptop. [1]: https://github.com/arch4edu [2]: https://github.com/morganamilo/paru -- Iyán Méndez Veiga GPG 0x422E3694311E5AC1
its since some hours or so that I get very often timeouts and/or "500 Internal Server Error" while accessing the AUR. It is fine for some seconds, sometimes minutes and then fails again. An example call done by the AUR helper (yay) is: https://aur.archlinux.org/rpc?arg%5B%5D=abootimg-git&arg%5B%5D=bcm4350-firmware&arg%5B%5D=bibata-extra-cursor-theme&arg%5B%5D=bootimgtool-git&arg%5B%5D=dbus-x11&arg%5B%5D=heimdall-git&arg%5B%5D=livepatcher&arg%5B%5D=python-clickgen1&arg%5B%5D=testdisk-wip&arg%5B%5D=zd1211-firmware&type=info&v=5 error on the CLI is: "net/http: TLS handshake timeout" error at the web is: "500 Internal Server Error" this is not that specific query though. it happens also just with opening https://aur.archlinux.org in a browser.. hope this is nothing serious :/ tested that on different systems.. Cheers Thomas
participants (7)
-
Evert Vorster
-
Georg Pfahler
-
Iyán Méndez Veiga
-
Javier
-
Polarian
-
T. Fischer
-
é