plugins/ held two unrelated things: the host that discovers and installs plugins, and the plugins themselves. The host moves to plugins/ with the built-in pacman provider beside it in providers/, where the external providers already live — so plugins/ is now one thing, and the name says which. The external plugin projects only change folder, not layout: providers/ holds aur-provider, flatpak-provider, example-provider and example-addon.
23 lines
1.1 KiB
C++
23 lines
1.1 KiB
C++
// 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"; }
|