[arch-general] Why are install functions not in PKGBUILD?

Heiko Baums lists at baums-on-web.de
Thu Jun 16 18:05:40 EDT 2011


Am Thu, 16 Jun 2011 23:21:15 +0200
schrieb Jan Steffens <jan.steffens at gmail.com>:

> Because the install stuff isn't a multi-line field (of which there are
> none), it's a bash script defining functions.

The install scripts are meant for stuff which needs to be done after
the package installation directly on the system like updating an icon
cache, font cache etc., while the PKGBUILD is a bash script which is
used for having packages built from the sources by makepkg and
installing them in a fake root like compiling, building the binary
package etc. So pacman doesn't see the PKGBUILD, but it sees the install
file in the binary package and can only execute the install script
functions but not the PKGBUILD functions.

And pacman doesn't need to and shouldn't see the build and package
functions.

Heiko


More information about the arch-general mailing list