[pacman-dev] Configure --prefix in PKGBUILD scripts

Antonio Huete Jimenez ahuete.devel at gmail.com
Wed Jun 4 06:57:20 EDT 2008

I don't think that costs too much effort and I think it would be even a nice

Why should we have separate ABS tree for each operating system? That sound a
lot of more effort. But well, this is just an opinion.

Antonio Huete

2008/6/4 Allan McRae <mcrae_allan at hotmail.com>:

> Antonio Huete Jimenez wrote:
> > I was thinking a way of changing --prefix= used in configure. I think
> > it's desirable to have a chance to change this to another directory,
> > specially in BSD where a lot of userland applications should not be
> > replaced with packages.
> >
> > pkgsrc does that by installing on /usr/pkg its bin, doc, lib, etc ...
> >
> > We could add to makepkg.conf the option PREFIX so we can use later
> > $PREFIX in PKGBUILD. For Archlinux we could specify /usr by default
> > and use /usr/pac for others, or whatever the user needs to.
> > This wouldn't affect ABS behaviour in Archlinux IMHO
> >
> > What do you think guys? :)
> Let me get this correct.  You want to add a PREFIX option in
> makepkg.conf so then people will use "./configure --prefix=${PREFIX}" in
> the PKGBUILDs and thus PKGBUILDs are portable across operating systems?
> If I interpreted you right there, it seems a bit of a waste of time to
> me.  When writing an Arch PKGBUILD, why would anybody write "${PREFIX}"
> instead of "/usr". One is a lot simpler, clearer and shorter and when
> writing a PKGBUILD for Arch, you are targeting Arch not every other
> operating system.
> Also, if porting Arch PKGBUILDs to other operating systems, changing the
> prefix is likely to be the easy part...
> Allan
> _______________________________________________
> pacman-dev mailing list
> pacman-dev at archlinux.org
> http://archlinux.org/mailman/listinfo/pacman-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20080604/5836e35b/attachment.htm>

More information about the pacman-dev mailing list