I'm analyzing different PKGBUILD
s to learn creating packages for Arch. I saw in a lot of them, that they do make
on sources, and then manually copy files in the different places with the install
command, instead of running make install
. Is there a reason for it?
Examples:
Best Answer
Well for one, these are
dkms
packages, and the actual make/etc is handled viadkms
at install time, not make time.For another reason, perhaps the
Makefile
itself is rather shoddy itself and would not work/could not be made to work with arch linux's packaging standards.If you check out more repo
PKGBUILD
s you may find more that actually do usemake install DESTDIR=${pkgdir}
, where${pkgdir}
resolves to the root directory that is tar'd up underfakeroot
to set proper permissions during thepackage()
function of thePKGBUILD