Commit 510368b4 authored by Sylvia van Os's avatar Sylvia van Os

Add recipe for i18n support

parent e2c3f25b
...@@ -7,7 +7,7 @@ IMAGE_FEATURES += "splash package-management" ...@@ -7,7 +7,7 @@ IMAGE_FEATURES += "splash package-management"
IMAGE_INSTALL += " \ IMAGE_INSTALL += " \
base-files base-passwd shadow systemd tzdata coreutils bash file findutils gawk grep procps psmisc sed util-linux sudo module-init-tools less tar gzip bzip2 \ base-files base-passwd shadow systemd tzdata coreutils bash file findutils gawk grep procps psmisc sed util-linux sudo module-init-tools less tar gzip bzip2 \
iproute2 connman bluez5 pulseaudio dropbear qtbase-plugins statefs dsme mce ngfd timed sensorfw android-init mapplauncherd-booster-qtcomponents usb-moded \ iproute2 connman bluez5 pulseaudio dropbear qtbase-plugins statefs dsme mce ngfd timed sensorfw android-init mapplauncherd-booster-qtcomponents usb-moded \
asteroid-launcher asteroid-calculator asteroid-calendar asteroid-stopwatch asteroid-settings asteroid-timer asteroid-alarmclock asteroid-btsyncd" supported-languages asteroid-launcher asteroid-calculator asteroid-calendar asteroid-stopwatch asteroid-settings asteroid-timer asteroid-alarmclock asteroid-btsyncd"
EXTRA_USERS_PARAMS = "groupadd system; \ EXTRA_USERS_PARAMS = "groupadd system; \
groupadd statefs; \ groupadd statefs; \
......
[Service]
EnvironmentFile=/var/lib/environment/ceres/locale.conf
SUMMARY = "Set of config files describing the languages that are available on AsteroidOS"
HOMEPAGE = "https://github.com/AsteroidOS/supported-languages"
LICENSE = "CC0-1.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=65d3616852dbf7b1a6d4b53b00626032"
SRC_URI = "git://github.com/AsteroidOS/supported-languages.git;protocol=https \
file://locale.conf \
file://localeEnv.conf"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "+git${SRCREV}"
S = "${WORKDIR}/git"
FILES_${PN} += "/etc/systemd/system/user@.service.d/ /usr/lib/systemd/user/ /usr/share/jolla-supported-languages/"
INSANE_SKIP_${PN} += "host-user-contaminated"
do_install_append() {
install -d ${D}/etc/systemd/system/user@.service.d/
cp ../localeEnv.conf ${D}/etc/systemd/system/user@.service.d/locale.conf
install -d ${D}/var/lib/environment/ceres/
cp ../locale.conf ${D}/var/lib/environment/ceres/locale.conf
# TODO: Ensure this only allows asteroid-settings to write to this file, so
# that others apps cannot set environment variables
chown 1000:1000 ${D}/var/lib/environment/ceres/locale.conf # ceres:ceres
install -d ${D}/usr/share/jolla-supported-languages/
cp ${S}/*.conf ${D}/usr/share/jolla-supported-languages/
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment