3

I'm analyzing different PKGBUILDs 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:

1 Answer 1

4

Well for one, these are dkms packages, and the actual make/etc is handled via dkms 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 PKGBUILDs you may find more that actually do use make install DESTDIR=${pkgdir}, where ${pkgdir} resolves to the root directory that is tar'd up under fakeroot to set proper permissions during the package() function of the PKGBUILD

2
  • Most likely the second paragraph :-) Commented Aug 12, 2016 at 12:29
  • I just thought about another good reason - explicit list of files that package is adding to my system, that is visible in PKGBUILD, is a nice thing to have :) . Commented Aug 12, 2016 at 12:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .