APKBUILD examples:Special Subpackages Languages: Difference between revisions
(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...") |
m (Fixed wikilink.) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
To keep packages small, languages files (LC_MESSAGES) are places in a seperate -lang subpackages. | To keep packages small, languages files (LC_MESSAGES) are places in a seperate -lang subpackages. | ||
{{cat|APKBUILD|... | |||
subpackages{{=}}"$pkgname-lang" | |||
... | ... | ||
}} | |||
[[abuild]] is throwing a warning if it detects | [[Abuild and Helpers|abuild]] is throwing a warning if it detects translation. | ||
<pre> | <pre> | ||
>>> WARNING: package*: Found /usr/share/ | >>> 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]] |
Latest revision as of 18:51, 19 November 2023
To keep packages small, languages files (LC_MESSAGES) are places in a seperate -lang subpackages.
Contents of APKBUILD
...
subpackages="$pkgname-lang"
...
abuild is throwing a warning if it detects translation.
>>> 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.