APKBUILD examples:Special Subpackages Languages

From Alpine Linux
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.