How do I add a package to the AUR?

I have been using Agisoft Metashape for a few years now in university. For the newest version there is an appropriate package available (https://aur.archlinux.org/packages/agisoft-metashape-pro).

Now that the company released the new version the package contains the version 2.0.X, but I don’t have licensing for it. Is there a way to also offer the older version (1.8.5) for everyone who is still using the old licensing model?

Both 2.X and 1.X are available in Standard and Pro version from their website: https://www.agisoft.com/downloads/installer/
The AUR only has 2.X and 2.X Pro.

  1. Check that the home/(user)/.cache/yay (or home/(user)/.cache/paru/clone) folder has the old version with the .pkg.tar.zst extension.
    https://www.reddit.com/r/ManjaroLinux/comments/av5fg8/where_is_the_build_directory_for_a_package_in_the/

  2. Or try Wayback Machine : https://web.archive.org/web/20200806014513/https://aur.archlinux.org/packages/agisoft-metashape-pro/

I’m trying to download using your method with the wayback machine. When performing the following:

sudo pacman -U https://web.archive.org/web/20220702113628/https://aur.archlinux.org/cgit/aur.git
/snapshot/agisoft-metashape-pro.tar.gz

I only get an error for not having a signature for the package. How do I add them from https://web.archive.org/web/20220702113628/https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=agisoft-metashape-pro ?

I don’t know anything about building, I was just trying to give you some ideas. In the Sources (7) section I could download e.g. metashape-pro_1_6_3_amd64.tar.gz ( 112,0 MiB (117 399 004) )

The documentation for how to add a package to AUR is here:
https://wiki.archlinux.org/title/AUR_submission_guidelines

If you want the old package files, you don’t need to use the wayback machine. You can get the complete history from here:
https://aur.archlinux.org/cgit/aur.git/log/?h=agisoft-metashape-pro

Do you know if there is an automated way to downgrade AUR packages similar to “downgrade”?

There is no automated way that I am aware of. You could see if the package is still in your cache and if so you can install it with sudo pacman -U /path/to/built/package. However, if it is built against old libraries it may not work.

For yay the cache is in ~/.cache/yay

You could also download the AUR files from commit e5d80a71a35f30de9c4ec2bfc259db6959e75a55 and then use makepkg to build the package

Ah, thank you very much. I managed to do it with makepkg. Somehow forgot, this command exists.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.