Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate a Pacman package #1

Merged
merged 4 commits into from
Jan 3, 2025
Merged

Conversation

lucas-yotsui
Copy link
Contributor

Added a PKGBUILD to generate the Pacman package to ease the installation of this program.

With this, we could eventually use this action to automate the publishing process to the AUR.

@tiagoporsch
Copy link
Owner

We should either make paru a hard dependency or edit the script to search for available pacman commands, because if some user installs this package and does not have paru installed it will not work.

I'm in favor of searching for pacman commands. It's harder to implement but makes the project more versatile.

…ompletion

Now there are two extra possible commands:
  The 'dpw help' command shows a menu with all the possible commands.
  The 'dpw update' command overwrites the packages.ini file with the
currently installed packages. This is useful for when new packages are
added directly with pacman, paru, yay, etc.

Besides, the PKGBUILD now adds autocompletion info about these commands
for the fish shell, if it is installed.
@lucas-yotsui
Copy link
Contributor Author

Hmm, but wouldn't that be like making a whole new AUR helper? I see the helper as a layer of abstraction around the pacman commands and our project as an even thinner layer around this one, just enough to make it declarative.

It seems that using only pacman would mean making a new helper, which is fine by me (I would find it really nice actually). But if we are making such a complicated project (paru for example is a huge codebase), shouldn't we use a language more powerful than plain old Bash?

If we take on this path of making a new helper, I'd say we publish this as a v1.x.x in its current condition with paru as a hard dependency and then start working on the fully featured helper as a v2.x.x.

@tiagoporsch
Copy link
Owner

It does not have to be that complicated, just searching for an available helper in the executable should be enough, see 7bd58ab.

I don't know if all helpers can be executed without using sudo, but if someone finds an issue they can bring it up here.

It would be nice to have the option to use it without any wrapper, just pacman, but we would have to prepend every ${PACMAN} call with sudo, which I think its unnecessary for now.

@tiagoporsch tiagoporsch merged commit 758a7bd into tiagoporsch:master Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants