I needed to perform specific actions related to AUR packages, but neither pacman nor yay nor others (that I know of) support hooks specific to AUR packages, so this is the solution I found.
The idea is to be an AUR helper that does the basics (install, remove, update, and search); the rest can be added by the HOOK system.
Usage:
haur -S <pkg> Install package
haur -Ss <query> Search package
haur -Syu Updade
haur -U Install local package
haur -R <pkg> Remove package
Options:
--downloadonly Download only
--buildonly Build only
To see how to use hooks, go to: https://github.com/NidoBr/haur/tree/main/hooks.d
If you're interested, I would appreciate your help in developing it.
- Instance control
- Handles split packages
- Reviews the PKGBUILD before building
- Uses git clone
- Uses SRCINFO
- Pacman-like options
- And the ability to use HOOKS
- Functions such as search
The goal is to be aligned with: https://wiki.archlinux.org/title/AUR_helpers