[pacman-dev] added --config option to makepkg

Xavier shiningxc at gmail.com
Thu Aug 7 08:43:33 EDT 2008

On Thu, Aug 7, 2008 at 2:17 PM, hoar heor <archye at pycut.com.ar> wrote:
> I don't really understand what you mean with gettext, as far as I know
> it's using it(although I maybe had skipped something)
> I know i't's a bit complicated, but otherwise it would source the file
> several times if there are more arguments(maybe there's some other way
> simpler to do it that I haven't noticed, anyway I'm still looking at
> the source to simplify it)

I meant getopts of course...

> well, it's not only intended to be used with "safe" makepkg, look it
> this way, someone has -arch and -mute changed to his platform so the
> packages are optimized, the problem is that they won't work on other
> processor, if that person builds the package for a repo he will have
> to change makepkg.conf in this way he could do makepkg
> --config=release and it would source makepkg.release(witch obviously
> must have had created earlier), or maybe a specific makepkg for one
> package makepkg --config=python wich would use makepkg.python

Obviously, the symlinks solution is not limited to two configs either.

And the env var way can be modified as well to support any configs.
Just use MAKEPKGCONF="configname"
Then makepkg.conf can be just one line : source

More information about the pacman-dev mailing list