puke: build script can now be in any language.

This commit is contained in:
Dylan Araps 2019-05-13 15:42:49 +03:00
parent fa0e65e1b0
commit 9268a692b6

View File

@ -115,7 +115,9 @@ Puke's `update` operator does a `git pull` of the repository and compares the re
### `build`
The `build` file should contain the necessary steps to patch, configure, build and install the package. When at the install step; the variable `$pkg_dir` is available. This variable points to the directory the package manager uses for built packages. Whatever is in this directory will become part of the package's manifest and will be copied to `/` (or `$PUKE_ROOT`).
The `build` file should contain the necessary steps to patch, configure, build and install the package. The build script is sent a single argument. This argument points to the package directory. Whatever is in this directory will become part of the package's manifest and will be copied to `/` (or `$PUKE_ROOT`). The first argument is frequently used in `make DESTDIR="$1" install` for example.
The `build` file can be written in any language. The only requirement is that the file be executable.
```sh
./configure \