fix standby name (web manual, hdd standby)
[vuplus_openvuplus] / meta-openvuplus / recipes-vuplus / fakelocale / fakelocale.bb
1 SUMMARY = "Fake locale support"
2 LICENSE = "CLOSED"
3 SECTION = "base"
4 PRIORITY = "required"
5 PR = "r4"
6
7 SRC_URI = " \
8         file://fakelocale.tar.gz \
9         file://locale.alias \
10 "
11 SRC_URI[md5sum] = "bb4aeb4cbab20e7a6b4a320b4e315e7b"
12 SRC_URI[sha256sum] = "03247627d6d324c26e29c4823a80d120512fb382334eecbb04568eff30074120"
13
14 S = "${WORKDIR}/fakelocale"
15
16 inherit allarch
17
18 LOCALEDIR = "${libdir}/locale"
19 LOCALEDIR2 = "/usr/share/locale"
20
21 LANGUAGES = "ar_AE cs_CZ da_DK de_DE el_GR es_ES et_EE fi_FI fr_FR fy_FY hr_HR \
22         hu_HU is_IS it_IT lt_LT nl_NL no_NO pl_PL pt_PT ro_RO ru_RU sk_SK sl_SI \
23         sr_YU sv_SE tr_TR ur_IN"
24
25 RPROVIDES = "virtual-locale-ar virtual-locale-cs virtual-locale-da \
26         virtual-locale-de virtual-locale-el virtual-locale-es virtual-locale-et \
27         virtual-locale-fi virtual-locale-fr virtual-locale-fy virtual-locale-hr \
28         virtual-locale-hu virtual-locale-is virtual-locale-it virtual-locale-lt \
29         virtual-locale-nl virtual-locale-no virtual-locale-pl virtual-locale-pt \
30         virtual-locale-ro virtual-locale-ru virtual-locale-sk virtual-locale-sl \
31         virtual-locale-sr virtual-locale-sv virtual-locale-tr virtual-locale-ur"
32
33 LOCALE_FILES = " LC_TIME LC_TELEPHONE LC_PAPER LC_NUMERIC LC_NAME LC_MONETARY LC_MESSAGES/SYS_LC_MESSAGES LC_MEASUREMENT \
34         LC_IDENTIFICATION LC_CTYPE LC_COLLATE LC_ADDRESS"
35
36 do_install() {
37         install -d ${D}${LOCALEDIR}/fake/LC_MESSAGES
38         install -d ${D}${LOCALEDIR2}
39
40         for x in ${LOCALE_FILES}; do
41                 install ${S}/$x ${D}${LOCALEDIR}/fake/$x
42         done
43         
44         for lang in ${LANGUAGES}; do
45                 ln -s fake ${D}${LOCALEDIR}/${lang}
46         done
47
48         install ${WORKDIR}/locale.alias ${D}${LOCALEDIR2}
49 }
50
51 FILES_${PN} = "${LOCALEDIR} ${LOCALEDIR2}"