feat(aur): add an AUR provider plugin
Community packages were invisible unless the user ran yay/paru by hand. Wrap the helper behind the provider interface, like the Flatpak plugin, so AUR results join search, installed and updates while staying optional. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
1 parent
edc3ef2925
commit
6d5b4274c4
4 files changed
+382
No files matched your search
@@ -0,0 +1,22 @@
|
||||
// AUR provider plugin — an external provider loaded at runtime by
|
||||
// PluginManager from the plugins/ directory next to the executable (or in
|
||||
// ~/.local/share/PacManager/plugins/). Wraps the yay/paru helpers so AUR
|
||||
// packages show up in search/installed/updates like any other provider.
|
||||
//
|
||||
// Built by default (see the FWS_BUILD_AUR_PLUGIN CMake option).
|
||||
|
||||
#include "aur-manager.h"
|
||||
#include "provider-plugin.h"
|
||||
|
||||
extern "C" const char* fws_plugin_kind() { return "provider"; }
|
||||
extern "C" const char* fws_plugin_id() { return "aur"; }
|
||||
extern "C" const char* fws_plugin_name() { return "AUR"; }
|
||||
extern "C" const char* fws_plugin_version() { return "1.0.0"; }
|
||||
extern "C" const char* fws_plugin_description() {
|
||||
return "Paquets communautaires Arch (AUR via yay/paru)";
|
||||
}
|
||||
extern "C" const char* fws_plugin_author() { return "BlackAngelTV"; }
|
||||
extern "C" IPackageManager* fws_create_provider() { return new AurManager(); }
|
||||
// Helpers are installed from the AUR itself; the Plugins page can offer to
|
||||
// install yay when the provider is unavailable.
|
||||
extern "C" const char* fws_plugin_install_hint() { return "yay"; }
|
||||
Reference in new issue
Block a user