You are not logged in.
Hello everybody,
I'm creating my first package for AUR. After installation the package needs some changes in .bashrc in order to work.
Where is the best place to do these changes?
Of course I could it in any function of the PKGBUILD. But I think this would brake some conventions, wouldnt it?
Thank you.
Last edited by loris1123 (2014-07-21 09:22:21)
Offline
Packages shouldn't touch my dotfiles.
What exactly is the change, post the PKGBUILD.
Last edited by karol (2014-07-21 10:36:16)
Offline
You can either echo the needed lines with instructions to include manually in a post_install section of readme.install or if too large, you can simply include them in /usr/share/pkgname/foo with instructions for the user to merge them in his/her .bashrc in the same scriptet.
Last edited by graysky (2014-07-21 11:01:33)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
I just need to add a environmental variable and add something to PATH
Offline
Why not add a script to /etc/profile.d ?
Online
/etc/profile.d sounds like a good idea. The good thing is, that the changes will be for every user then.
Sadly the user has to relogin, but I think this is okay.
Offline
You can either echo the needed lines with instructions to include manually in a post_install section of readme.install or if too large, you can simply include them in /usr/share/pkgname/foo with instructions for the user to merge them in his/her .bashrc in the same scriptet.
This is the way to go, if you want to upload it to the AUR. The majority of users will hate you for everything else.
I just need to add a environmental variable and add something to PATH
Even the JRE package only informs you about a possibly missing PATH item. In my opinion, pacman has no business altering anything on the user side.
Last edited by Awebb (2014-07-21 13:12:35)
Offline
graysky wrote:You can either echo the needed lines with instructions to include manually in a post_install section of readme.install or if too large, you can simply include them in /usr/share/pkgname/foo with instructions for the user to merge them in his/her .bashrc in the same scriptet.
This is the way to go, if you want to upload it to the AUR. The majority of users will hate you for everything else.
If you say so, I will take this advice from expirienced users like you. Thank you
Offline