You are not logged in.
Hi,
What is the correct way or the recommended way to add a directory to the path from a PKGBUILD?
Thanks
Offline
I think generally you shouldn't but you should instead print a message via the .install file telling the user what to add to his/her PATH.
Offline
The question is pretty vague, but if you're asking how to add a dir to $PATH after the package is installed, install a profile to /etc/profile.d/ containing something like this:
export PATH="$PATH":/opt/smth/bin
Otherwise, you need to provide actual details about what you want.
Last edited by tdy (2013-01-21 17:44:18)
Offline
This sounds like an "X-Y"[1] problem.
I'm guessing you have something that needs to be installed somewhere not in a "normal" $PATH like /opt/ or /usr/local/, right? If so, you can put a link in /usr/bin to the executable. Alternately you could create a short script that launches the executable and place the script in /usr/bin.
[1]: http://mywiki.wooledge.org/XyProblem
Last edited by Trilby (2013-01-21 17:57:48)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
I'm guessing you have something that needs to be installed somewhere not in a "normal" $PATH like /opt/ or /usr/local/, right? If so, you can put a link in /usr/bin to the executable. Alternately you could create a short script that launches the executable and place the script in /usr/bin.
Yes that's right and the package is vmware workstation.
the solution you suggested was actually what i thought and i looked up other binary packages and that's how it was done but the problem here is there's a bunch of binaries for vmware and it would be just easier to add vmware's bin directory than to symlink each binary and hence what i asked.
The question is pretty vague, but if you're asking how to add a dir to $PATH after the package is installed, install a profile to /etc/profile.d/ containing something like this:
export PATH="$PATH":/opt/smth/bin
Otherwise, you need to provide actual details about what you want.
This seems to be what i want i'll try this.
Thanks
Offline