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