APKBUILD examples:Special Subpackages Examples

From Alpine Linux
Revision as of 20:56, 3 June 2020 by Taras zaporozhets (talk | contribs) (Removal of explicit return 1. (They are still found the old APKBUILD files if you are learning but are now strongly discouraged.))
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.

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
}