Changeset View
Changeset View
Standalone View
Standalone View
depends/packages.md
Each recipe consists of 3 main parts: defining identifiers, setting build | Each recipe consists of 3 main parts: defining identifiers, setting build | ||||
variables, and defining build commands. | variables, and defining build commands. | ||||
The package "mylib" will be used here as an example | The package "mylib" will be used here as an example | ||||
General tips: | General tips: | ||||
- mylib_foo is written as $(package)_foo in order to make recipes more similar. | - mylib_foo is written as $(package)_foo in order to make recipes more similar. | ||||
## Identifiers | ## Identifiers | ||||
Each package is required to define at least these variables: | Each package is required to define at least these variables: | ||||
$(package)_version: | $(package)_version: | ||||
Version of the upstream library or program. If there is no version, a | Version of the upstream library or program. If there is no version, a | ||||
placeholder such as 1.0 can be used. | placeholder such as 1.0 can be used. | ||||
$(package)_download_path: | $(package)_download_path: | ||||
Location of the upstream source, without the file-name. Usually http or | Location of the upstream source, without the file-name. Usually http, https | ||||
ftp. | or ftp. Secure transmission options like https should be preferred if | ||||
available. | |||||
$(package)_file_name: | $(package)_file_name: | ||||
The upstream source filename available at the download path. | The upstream source filename available at the download path. | ||||
$(package)_sha256_hash: | $(package)_sha256_hash: | ||||
The sha256 hash of the upstream file | The sha256 hash of the upstream file | ||||
These variables are optional: | These variables are optional: | ||||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |