You are not logged in.

#1 2026-01-31 10:42:26

413x1nkp
Member
Registered: 2024-05-02
Posts: 4

Handling customizable shell scripts when building a package

I've been planning on bringing a small utility i made onto AUR, but there's a small issue that i'm not sure how to solve in a best way.

The software itself comes with a couple shell scripts, some of them are autocompletion for bash, and two of them are for simple utility purposes.
I want the utility scripts to be customizable by the user, as currently they're tied to VLC specifically. So if i want the user to be able to easily change them, where should i put them?

After searching this forum and the arch wiki i couldn't really find information on how to handle shell scripts with the package.

I thought about putting them in `~/bin/' or `/usr/local/bin/', but i'm not entirely sure if that's the most conventional solution.
I suppose i could just not ship them altogether. I'm not really sure what the best solution here is, honestly.

I would greatly appreciate any advice

Offline

#2 2026-01-31 11:48:19

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,517

Re: Handling customizable shell scripts when building a package

You can't, that's not something doable with packages. You could make them read a config file, but no customization of the script itself.

Last edited by Scimmia (2026-01-31 11:49:36)

Offline

#3 2026-01-31 15:50:41

413x1nkp
Member
Registered: 2024-05-02
Posts: 4

Re: Handling customizable shell scripts when building a package

Scimmia wrote:

You can't, that's not something doable with packages. You could make them read a config file, but no customization of the script itself.

I see! I suppose sourcing a config.sh with a defined function in it would also work and be much simpler overall.

Thank you smile

Offline

Board footer

Powered by FluxBB