mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
glibc: add option to install all locales to the build, enable by default
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
@@ -14,6 +14,9 @@
|
|||||||
# Root password to integrate in the target system
|
# Root password to integrate in the target system
|
||||||
ROOT_PASSWORD="openelec"
|
ROOT_PASSWORD="openelec"
|
||||||
|
|
||||||
|
# Install glibc locales to the build (yes / no)
|
||||||
|
GLIBC_LOCALES="yes"
|
||||||
|
|
||||||
# Mediacenter to use (kodi / no)
|
# Mediacenter to use (kodi / no)
|
||||||
MEDIACENTER="kodi"
|
MEDIACENTER="kodi"
|
||||||
|
|
||||||
|
|||||||
@@ -139,10 +139,13 @@ post_makeinstall_target() {
|
|||||||
|
|
||||||
# remove locales and charmaps
|
# remove locales and charmaps
|
||||||
rm -rf $INSTALL/usr/share/i18n/charmaps
|
rm -rf $INSTALL/usr/share/i18n/charmaps
|
||||||
|
|
||||||
|
if [ ! "$GLIBC_LOCALES" = yes ]; then
|
||||||
rm -rf $INSTALL/usr/share/i18n/locales
|
rm -rf $INSTALL/usr/share/i18n/locales
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/share/i18n/locales
|
mkdir -p $INSTALL/usr/share/i18n/locales
|
||||||
cp -PR $ROOT/$PKG_BUILD/localedata/locales/POSIX $INSTALL/usr/share/i18n/locales
|
cp -PR $ROOT/$PKG_BUILD/localedata/locales/POSIX $INSTALL/usr/share/i18n/locales
|
||||||
|
fi
|
||||||
|
|
||||||
# create default configs
|
# create default configs
|
||||||
mkdir -p $INSTALL/etc
|
mkdir -p $INSTALL/etc
|
||||||
|
|||||||
Reference in New Issue
Block a user