Next: , Previous: , Up: Packaging System   [Contents][Index]

4.2 sources

sources’ file is a list of files and sources that will be put to the build directory during the build process. Those can be remote sources (such as tarballs), git repositories, and files that reside on the package directory.

The syntax is pretty simple for the ‘soures’ file; ‘src dest’. The ‘dest’ parameter is optional. It is the directory that the source will be placed in. Here is the ‘sources’ file for the ‘gst-plugins’ package: good   bad ugly               libav

This file is read from the package manager as space seperated. Files that begin with a ‘#’ comment are ignored. The first value points to the location of the source.

If it starts with a protcol url, (such as ftp:// http:// https://) it will be downloaded with ‘curl’.

If the source is a git repository, it shall be prefixed with a ‘git+’ git(1) will be used to do a shallow clone of the repository. If the commit is suffixed by a history pointer, git will checkout the relevant revision. So,


will checkout the tag named "v1.2.3"


will checkout the branch named "development"


will checkout the commit named "1a314s87"

Other files are assumed to be residing in the package directory. They should be added with their paths relative to the package directory.