Installing from a tarball without borking my system?
I'm trying to test a certain build of SDL2 that has some extra build flags enabled, and it's distributed as a .tar.xz. The only problem is I also have packages installed that depend on the version of SDL2 from the repositories. Is there a way to install this build without breaking my system, and without having to uninstall everything that depends on SDL2?
About this post
- Posted
- Archived
- Score
- 7 · 78% up
- Kind
- Text
- ID
- lpud74
5 comments
The easiest way would be to just download the PKGBUILD for SDL2 and change whatever you want there, then reinstall. If it breaks your system you can just reinstall from the repos.
Good idea. Thanks!
You can download the PKGBUILD through
asporsvn, modify the PKGBUILD, and install it throughmakepkg.Look up the Arch Build System for more information.
Thanks for your help!
In addition to what others said about modifying the PKGBUILD, I highly recommend you give your package a different name and make it provide and conflict with sdl2, the way that the AUR sdl2-git package does it. Otherwise, pacman will overwrite your custom package with the official one once an update comes out.