diff --git a/Manual.md b/Manual.md index b2b175fe2ca..a6907e291fc 100644 --- a/Manual.md +++ b/Manual.md @@ -38,6 +38,7 @@ packages for XBPS, the `Void Linux` native packaging system. * [Python packages](#pkgs_python) * [Go packages](#pkgs_go) * [Haskell packages](#pkgs_haskell) + * [Font packages](#pkgs_font) * [Notes](#notes) * [Contributing via git](#contributing) * [Help](#help) @@ -580,6 +581,12 @@ Example: A list is composed of three components separated by a colon: group, symlink and target. i.e `alternatives="vi:/usr/bin/vi:/usr/bin/nvi ex:/usr/bin/ex:/usr/bin/nvi-ex"`. +- `font_dirs` A white space separated list of directories specified by an absolute path where a +font package installs its fonts. +It is used in the `x11-fonts` xbps-trigger to rebuild the font cache during install/removal +of the package. +i.e `font_dirs="/usr/share/fonts/TTF /usr/share/fonts/X11/misc"` + #### About the many types of `depends` variable. @@ -1242,6 +1249,18 @@ The following variables influence how Haskell packages are built: - `make_build_args`: This is passed as-is to `stack build ...`, so you can add your `--flag ...` parameters there. + +### Font packages + +Font packages are very straightforward to write, they are always set with the +following variables: + +- `noarch=yes`: Font packages don't install arch specific files. +- `depends="font-util"`: because they are required for regenerating the font +cache during the install/removal of the package +- `font_dirs`: which should be set to the directory where the package +installs its fonts + ### Notes