1.3 KiB
1.3 KiB
Concepts
Config
In python, using functions and args for them
Packages config
Repos
- Just use pacman with the list
AUR
Users can choose to either use yay (less secure, but easier, using archmgr.pkgs.aur.add_aur_helper_package, does not do any checks on the PKGBUILDs) or
Explicit management:
- User provides package (by creating
archmgr.pkgs.aur.AURPackageclass) and adding its AUR deps. Other deps are resolved automatically - Send the package class to the manager using
archmgr.pkgs.aur.add_aur_package - In the future will provide a function that will do the dep resolution automatically.
- For each and its deps, it will analyze the PKGBUILD for common malware issues. Also add option to display all PKGBUILDs before building
Commands
- Run the command on the specified hook
Templates
- Use pystache to replace elements
Themes
- Use python-colorthief to extract palette
- Add those as named elements to the templates list
Modules
- Packages function (can be overridden to return the packages)
- AUR helper packages function (can be overriden to return the packages)
- Custom AUR packages function (can be overriden to return the packages)
- on_enable
Apply
- Diff the package list, adding the registered AUR packages to the list as well (so they are not uninstalled)