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