Movatterモバイル変換


[0]ホーム

URL:


Skip to content

PKGBUILD

PKGBUILD is the Arch Linux package build description file, which we inherit byusing pacman. Seehttps://man.archlinux.org/man/PKGBUILD.5 for details on theformat. We have some minor extensions to the format, which are documented here.

Extra Metadata

Variables starting withmsys2_ andmingw_ can be used to add additional metadata to a package, which will be read and used by our tools.The following variables are recognized:

VariableTypeDescription
mingw_archarrayA list of MSYS2 environments the package is built for. Defaults to an empty list.
msys2_referencesmappingMaps the package to external resources, such as other package repositories.
msys2_changelog_urlstringNEWS file in git or the GitHub releases page. In case there are multiple, the one that is more useful for packagers.
msys2_documentation_urlstringURL to the documentation for the API, tools, etc., in case it's a different website than the homepage.
msys2_repository_urlstringURL to the web view of the repository, e.g., on GitHub or GitLab.
msys2_issue_tracker_urlstringURL to the bug tracker, mailing list archive, etc.
msys2_pgp_keys_urlstringURL to a website containing which keys are used to sign releases.
msys2_ignore_vulnerabilitiesarrayA list of CVE and/or GHSA IDs which should be ignored.

Formsys2_references the following keys are recognized:

  • anitya - The Anitya project ID, for example "2566" foropenssl.
  • archlinux - the Arch Linux package name:https://archlinux.org/packages/
  • aur - the AUR package name:https://aur.archlinux.org/packages
  • cygwin - the cygwin package name:https://cygwin.com/packages/src_package_list.html
  • cygwin-mingw64 - the cygwin package name for all packages starting with "mingw64-x86_64-", minus that prefix:https://cygwin.com/packages/src_package_list.html
  • gentoo - the full Gentoo package name e.g.dev-python/pyasn1
  • internal - special key, which if it exists marks the package as internal and doesn't link it to any external sources
  • purl - apackage URL. Multiple PURLs supported. Versions are optionally supported, and useful in case the upstream version is different from the package version. Some common PURL types:
    • pypi - example:pkg:pypi/jinja2 orpkg:pypi/@3.1.5 - make sure tonormalize the package name
    • cargo - example:pkg:cargo/ripgrep orpkg:cargo/ripgrep@14.1.1
    • gem - example:pkg:gem/asciidoctor
    • github - example:pkg:github/curl/curl orpkg:github/curl/curl@curl-8_12_1
    • ...
  • cpe - aCPE prefix, either in the 2.2 or the 2.3 format. Versions are optionally supported, and useful in case the upstream version is different from the package version (cpe:/a:gnu:gcc:14.2.0).

    • 2.2:cpe:/a:gnu:gcc orcpe:/a:gnu:gcc:14.2.0
    • 2.3:cpe:2.3:a:gnu:gcc orcpe:2.3:a:gnu:gcc:14.2.0

Defining a key without a value means there is no mapping and the package shouldn't be linked.

The following datatypes are supported:

  • string:msys2_myvar="example" 🠆{"myvar": "example"}
  • array: Arrays of strings:msys2_myvar=("example1" "example2") 🠆{"myvar": ["example1", "example2"]}
  • mapping: Mappings of strings to optional other strings, separated by":", values are stripped:msys2_myvar=("example1: value1" "example2") 🠆{"myvar": {"example1": ["value1"], "example2": [null]}}
  • boolean: eithertrue orfalse:msys2_myvar=true 🠆{"myvar": true}

Changelog

2025-02-17: Added support for theversion component inpurl entries, for examplepurl: pkg:pypi/jinja2@3.1.5.

2025-02-17: Removed support forpypi inmsys2_references, usepurl with thepypi type instead, for examplepurl: pkg:pypi/jinja2 instead ofpypi: jinja2.


[8]ページ先頭

©2009-2025 Movatter.jp