Talk:Creating packages

From ArchWiki
Jump to: navigation, search

Confusing Sentences

This is a bit confusing for me:

In old packages, there was no package() function. So, putting compiled files was done at the end of the build() function. If package() is not present, build() runs via fakeroot. If package() is present, build() runs as the user calling makepkg, package() runs via fakeroot.

I'm guessing "putting" should be either "placing of" or "packaging," but I'm not sure. I'm also completely confused about the last sentence. - Zeniff (talk) 23:35, 7 July 2012 (UTC)

Putting = arranging or installing into the pkg/ temporary staging directory, ready to be packaged by makepkg; i.e. what the package() function is now for. Maybe if it said “putting files into pkg/”? The last sentence is saying what normally happens: only package() runs in the fakeroot environment, and build() runs without any special privileges (so cannot set file ownership, etc). Vadmium (talk) 22:54, 29 January 2013 (UTC).
Topic out of date. Related section is gone. Close. --Fengchao (talk) 02:28, 8 November 2017 (UTC)

prepare() runs before pkgver()

I've just discovered that and conftibuted this information to this article. It is great, and makes sense. Things can be done to get proper pkg version after.

If someone what to discuss this, can write here. - Anton Latukha (talk) 21:49, 16 February 2017 (UTC)

Close. --Fengchao (talk) 02:29, 8 November 2017 (UTC)