APKBUILD examples:Special Subpackages Examples: Difference between revisions
(Created page with "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. <pre> subpackages="$pkgname-examples"...") |
m (added to Development Category) |
||
Line 10: | Line 10: | ||
} | } | ||
</pre> | </pre> | ||
[[Category:Development]] |
Revision as of 04:58, 12 March 2012
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 || return 1 mv "$_builddir"/examples "$subpkgdir"/usr/share/doc/"$pkgname"/examples || return 1 }