Hi ! I just made my first AUR package, which was really fun, and I was wondering what your own experience was like. Why did you decide to make your first packages ? What was fun, what was annoying ? What problems did you have ? Had you been using Arch for long ?
Mine was nothing complicated, just packaging a bash game with no dependencies made by someone else… because I wanted to try it and I was too lazy to install it from source 😅 Just the thought of having to manually check for updates and reinstall exhausts me and my adhd calculated that learning how to make a package would be less effort (never try to argue with adhd maths).
I did have some trouble because the game wanted its config and other files in $HOME and didn’t create them directly (it was done by an install script run when installing it manually from source), but obviously I couldn’t make the package create them there, which really confused the hell outta me. In the end the creator of the game kindly send me links to AUR packages that other people had done for his other projects so I could see what they had done and I did and did the same, which was to put the files in the locations recommended by the specs like /etc and /usr, and to added a post-install message telling the user to copy/paste some commands to copy the files in $HOME. It’s a bit clunky but I guess it works 🥳
The fun part for me was learning more about how packages were installed, and the reason behind the specs. It’s fine reading that packages shouldn’t create files in $HOME but it doesn’t tell me WHY. Also it’s a lot more fun to try anyway even knowing it’s a bad idea, just to see what kind of mess happens (turns out it couldn’t install because /root/.config was missing 😂 )
If you had told me a year and a half ago when I switched to linux that I’d end up making a package, I’d probably have thought that you were crazy 😁
Wow yes it was ! Those two, magic-tape and radion. Before the creator send me the links I had tried looking at random packages from the AUR but I didn’t have much luck finding some with the same issue, it was looking at those that really helped !
I thought the guidelines recommending not to create files in $HOME was due to technical issues with the package not managing to find the right $HOME dir, and even if it did it would make use weird permissions, I had no idea it was also for security thanks for the explanation 🙂