APKBUILD examples:Special Subpackages Languages: Difference between revisions

From Alpine Linux
(Created page with "To keep packages small, languages files (LC_MESSAGES) are places in a seperate -lang subpackages. <pre> ... subpackages="$pkgname-lang" ... </pre> abuild is throwing a warn...")
 
(added to Development Category)
Line 9: Line 9:
[[abuild]] is throwing a warning if it detects tanslation.
[[abuild]] is throwing a warning if it detects tanslation.
<pre>
<pre>
>>> WARNING: package*: Found /usr/share/local. Maybe add $pkgname-lang to subpackages?
>>> WARNING: package*: Found /usr/share/locale. Maybe add $pkgname-lang to subpackages?
</pre>
</pre>
Please note that some packages will automatically detect NLS if gettext-dev is installed at build time. If gettext-dev is not a direct or indirect dependency then should most likely no -lang be needed.
[[Category:Development]]

Revision as of 05:01, 12 March 2012

To keep packages small, languages files (LC_MESSAGES) are places in a seperate -lang subpackages.

...
subpackages="$pkgname-lang"
...

abuild is throwing a warning if it detects tanslation.

>>> WARNING: package*: Found /usr/share/locale. Maybe add $pkgname-lang to subpackages?

Please note that some packages will automatically detect NLS if gettext-dev is installed at build time. If gettext-dev is not a direct or indirect dependency then should most likely no -lang be needed.