APKBUILD examples:Special Subpackages Examples

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
}
This article is issued from Alpinelinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.