APKBUILD examples:Special Subpackages Examples

From Alpine Linux
Revision as of 22:30, 16 September 2023 by Sertonix (talk | contribs) (use cat template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Examples files can be useful it you want to get familiar with a tool. Normally the examples are not needed to run an application or a tool.

Contents of APKBUILD

... subpackages="$pkgname-examples" ... examples() { # Put the examples into a seperate package mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/examples mv "$_builddir"/examples "$subpkgdir"/usr/share/doc/"$pkgname"/examples } ...