void-packages/common/helpers
Dominik Honnef 94556b367f change vman helper to automatically detect section
Given a filename like "foo.1" or "foo.fr.1", it is possible to calculate
the correct directory to install to, without requiring the user to
specify it.

Suggested-by: Christian Neukirchen <chneukirchen@gmail.com>
2014-07-04 16:55:04 +02:00
..
install.sh change vman helper to automatically detect section 2014-07-04 16:55:04 +02:00
README common: added a helpers directory with common shell helpers. 2014-01-28 12:10:04 +01:00
replace-interpreter.sh common: added a helpers directory with common shell helpers. 2014-01-28 12:10:04 +01:00

SHELL HELPERS
=============

This directory contains shell files that are read by xbps-src and can be used at any
phase when building source packages. Only files with the `.sh' extension will be read.

A shell helper must provide its own function for use in the source packages.
The following examples illustrates a fake helper named `myhelper.sh' that provides
the `myhelper_func' function:

myhelper.sh:
...
myhelper_func() {
	...
}
...

You can then use this helper in a source package like this:

srcpkgs/foo/template:
...
do_install() {
	myhelper_func ...
}
...