The Autopackage API |
| Table of Contents / Public library / Installation |
Install/uninstall script functions.
| copyFiles | <SOURCES> <DESTINATION DIRECTORY> |
| updateEnv | [--append] <VARIABLE> <PATH> |
| installExe | <FILES> |
| installLib | <LIBRARIES> |
| installDesktop | <CATEGORY> <FILES> |
| installInfo | <FILES> |
| installMan | <SECTION> <FILES> |
| installIcon | <FILES> |
| installIconTheme | <NAME> <FILES> |
| installSound | <FILES> |
| copyFiles | ||||
| Syntax: copyFiles <SOURCES> <DESTINATION DIRECTORY> | ||||
| ||||
| Copy one or more files to DESTINATION DIRECTORY. These files are logged in the uninstall log and will be automatically removed at uninstall. | ||||
Example:
copyFiles hello.txt world.txt "$prefix/doc" |
| updateEnv | ||||||
| Syntax: updateEnv [--append] <VARIABLE> <PATH> | ||||||
| ||||||
| Prepends a path to an environment variable and add a command in the logfile to remove it if needed at uninstall. The modifications to the environment variables will be saved in various shell startup scripts. |
| installExe | ||
| Syntax: installExe <FILES> | ||
| ||
| Installs any executable file. $PATH will be automatically updated if the installation location is not currently in it. |
| installLib | ||
| Syntax: installLib <LIBRARIES> | ||
| ||
| Install shared libraries (.so). The linker search path will be automatically updated. |
| installDesktop | ||||
| Syntax: installDesktop <CATEGORY> <FILES> | ||||
| ||||
| Install a desktop entry (.desktop file). This function will automatically detect GNOME and KDE and will copy the desktop entires to the proper locations. |
| installInfo | ||
| Syntax: installInfo <FILES> | ||
| ||
| Install .info files. |
| installMan | ||||
| Syntax: installMan <SECTION> <FILES> | ||||
| ||||
| Install Unix manual pages. The manpage search path will be automatically updated. |
| installIcon | ||
| Syntax: installIcon <FILES> | ||
| ||
| Install files to proper desktop icon directory. |
| installIconTheme | ||||
| Syntax: installIconTheme <NAME> <FILES> | ||||
| ||||
| Install files to proper desktop icon theme directory. | ||||
Example:
installIconTheme "artdeco" ./share/icons/artdeco |
| installSound | ||
| Syntax: installSound <FILES> | ||
| ||
| Install files to proper desktop sound directory. | ||
Example:
installSound ./share/sounds |