Packages configured before compiling

view story

https://bbs.archlinux.org – I often use a variety of your option #1.You can keep your own version of the PKGBUILD that you have editted and use that to upgrade the package, or - on each upgrade of the package - just edit the PKGBUILD to include a line that copies your personal config.h to the src directory.  For example, I do this for my own package where I add cp ~/.ttwmconf.h ./config.hto the build function of the package build directly before the make command.Note that if the format of or options available in the config file change, this could cause problems.  This should be checked on occasionally, but o (HowTos)