https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&user=Taras+zaporozhets&feedformat=atomAlpine Linux - User contributions [en]2024-03-28T17:15:55ZUser contributionsMediaWiki 1.40.0https://wiki.alpinelinux.org/w/index.php?title=APKBUILD_examples:Special_Subpackages_Examples&diff=17693APKBUILD examples:Special Subpackages Examples2020-06-03T20:56:26Z<p>Taras zaporozhets: Removal of explicit return 1. (They are still found the old APKBUILD files if you are learning but are now strongly discouraged.)</p>
<hr />
<div>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.<br />
<br />
<pre><br />
subpackages="$pkgname-examples"<br />
...<br />
examples() {<br />
# Put the examples into a seperate package<br />
mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/examples<br />
mv "$_builddir"/examples "$subpkgdir"/usr/share/doc/"$pkgname"/examples<br />
}<br />
</pre><br />
<br />
[[Category:Development]]</div>Taras zaporozhets