Manual Page Search Parameters

tmplgen(1) General Commands Manual tmplgen(1)

tmplgen - Void Linux template generator for language-specific package managers

tmplgen [FLAGS] [OPTIONS] <PKGNAME>

-d, --debug

Print debug info. Will overrule the verbose switch.

-f, --force

Overwrite template if it already exists.

-h, --help

Prints help information

-n, --no-prefix

Don't use language-specific prefix when creating or updating packages

-u, --update

Check if a new version for the package is available and if so, update version and checksum

-U, --UpdateAll

Same as -u but also update distfiles and homepage

-V, --version

Prints version information

-v, --verbose

Be more verbose. Is ignored if debugging is enabled.

-t, --tmpltype <crate/gem/perldist>

Explicitly sets what kind of template we want to generate

<PKGNAME>

Name of the package to be generated

tmplgen was created to fill the job of automatically generating xbps-src templates from language specific package managers like CPAN, crate and rubygems.

tmplgen makes uses of the APIs available in each language specific package manager to get information and fill out in a xbps-src compatible template. e.g. fields like version, distfiles, homepage, depends.

tmplgen also creates templates recursively, walking down the full dependency tree and creating templates for all required packages.

Other fields like maintainer is automatically filled by information from GIT_AUTHOR_{NAME,EMAIL} and git config.

XBPS_DISTDIR needs to be set for tmplgen to know where to write the templates

•When generating templates for the perldist tmpltype rewrite all occurrences of :: as -. e.g. Task::Kensho -> Task-Kensho

•If a PKGNAME is given without -t it will query all sources and if only one result is found it will use it

•Download progress bar

# Generate template for ffi from rubygems
$ tmplgen -t gem ffi
# Generate template for travis from rubygems
$ tmplgen -t gem travis
# Generate template for tmplgen itself
$ tmplgen -t crate tmplgen
# Generate template for Perl's Task::Kensho
$ tmplgen -t perldist Task-Kensho
# Generate template for Rubygems's diff-lcs
# since it is only available on rubygems it will default to that
$ tmplgen diff-lcs
2018-12-10 x86_64