Kaydet (Commit) 6c2d8ad4 authored tarafından Your Name's avatar Your Name

update documentation

üst ed5a149d
...@@ -131,20 +131,23 @@ Unibuild supported different source types. All known source types: ...@@ -131,20 +131,23 @@ Unibuild supported different source types. All known source types:
Split package Split package
^^^^^^^^^^^^^ ^^^^^^^^^^^^^
Unibuild uses **PKGS** array for getting package names. We have main package and splited package. Main package is first PKGS array item. If you did not define this aray unibuild use **name** value as single package name. Unibuild uses **PKGS** array for getting package names. We have *main* package and *splited* packages. Main package is first **PKGS** array item. If you did not define this aray unibuild use **name** value as single package name.
Unibuild define and create **INSTALLDIR** and **PKGDIR** directories for every splited and main packages and run **_install** functions. Unibuild define and create **INSTALLDIR** and **PKGDIR** directories for every *splited* and *main* packages and run **_install** functions.
Unibuild change **package** value when run **_install** function. Unibuild change **package** value when run **_install** function.
You can split package like this: You can split package like this:
.. code-block:: shell .. code-block:: shell
PKGS=("main" "splited")
if is_pkg "splited_package_name" ; then _install(){
takedir "main_package_name" "/path/to/stuff" if is_pkg "splited" ; then
return takedir "main" "/path/to/stuff"
fi return
fi
make install DESTDIR=$INSTALLDIR
}
**takedir** function move files or directories from main package. **takedir** function move files or directories from main package.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment