wok-next annotate slitaz-i18n/receipt @ rev 19759

Up cpufrequtils, dhcp, dhcp6, fontforge, glibc, libspiro, libuninameslist, slitaz-i18n, ttf-dejavu, ttf-roboto, tzdata, ucl.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jun 09 22:24:52 2017 +0300 (2017-06-09)
parents f2fe8c08dc89
children 5dcba97b45a1
rev   line source
al@19759 1 # SliTaz package receipt v2.
pankso@3087 2
pankso@3087 3 PACKAGE="slitaz-i18n"
al@19759 4 VERSION="6.0"
pankso@10751 5 CATEGORY="meta"
al@19759 6 SHORT_DESC="SliTaz internationalization"
al@19759 7 MAINTAINER="devel@slitaz.org"
pascal@15579 8 LICENSE="GPL3"
pankso@10751 9 WEB_SITE="http://www.slitaz.org/"
al@17402 10 HOST_ARCH="i486 arm"
pankso@10751 11
al@19759 12 BUILD_DEPENDS_arm=" "
al@19759 13 SPLIT="locale-ar locale-ca locale-cs locale-da locale-de locale-el locale-en \
al@19759 14 locale-es locale-fi locale-fr locale-hr locale-hu locale-id locale-is \
al@19759 15 locale-it locale-ja locale-nb locale-nl locale-nn locale-pl locale-pt \
al@19759 16 locale-pt_BR locale-ro locale-ru locale-sl locale-sv locale-tr locale-uk \
al@19759 17 locale-zh_CN locale-zh_TW slitaz-i18n"
al@17402 18
pankso@3087 19 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@3087 20 genpkg_rules()
pankso@3087 21 {
al@19759 22 . $stuff/locale-pack.functions
al@19759 23 . $stuff/locale-pack.conf
al@19759 24 case $PACKAGE in
al@19759 25 *-i18n)
al@19759 26 # Allow to build the packages who want me...
al@19759 27 sed -i "/^$PACKAGE\$/d" $CACHE/broken 2>/dev/null || true
pascal@19465 28
al@19759 29 # Recook tzdata package: we move files from tzdata to locale-* packages
al@19759 30 cook tzdata
al@19500 31
al@19759 32 mkdir -p $fs/usr/share/doc/slitaz
al@19759 33 cat > $fs/usr/share/doc/slitaz/i18n.txt <<EOT
pankso@4855 34 SliTaz i18n information
pankso@3087 35 ================================================================================
pankso@3087 36
al@18168 37 This package provides the necessary functions and configs for the SliTaz locale
al@18168 38 pack. SliTaz uses UTF-8 by default and tazlocale (from SliTaz tools) to
paul@4858 39 configure the system language.
pankso@4855 40
pankso@3087 41
paul@4858 42 Translated packages files included in the core languages pack (from upstream):
pankso@3087 43 ----
al@16554 44 $(echo $CORE_PKGS | fold -s)
pankso@3087 45 ----
pankso@3087 46
pankso@10751 47 SliTaz i18n project coordination is done on the SCN and doc is on the website:
pankso@3087 48
pankso@10751 49 http://www.slitaz.org/i18n.php
pankso@3087 50
pankso@3087 51
pankso@3087 52 ================================================================================
pankso@10783 53 EOT
al@19759 54 ;;
al@19759 55 *-ar) C="Arabic"
al@19759 56 get_locale "ar" "" "" \
al@19759 57 "" "SA:ara US:us" \
al@19759 58 "ISO8859-6 IBM864 CP1256";;
al@19759 59 *-ca) C="Catalan"
al@19759 60 # it_IT for ca_IT
al@19759 61 get_locale "ca" "it_IT" "" \
al@19759 62 "" "AD:ad" \
al@19759 63 "CP1252 ISO8859-1 ISO8859-3 ISO8859-9 ISO8859-9E ISO8859-15";;
al@19759 64 *-cs) C="Czech"
al@19759 65 get_locale "cs" "" "" \
al@19759 66 "cz-lat2" "CZ:cz" \
al@19759 67 "ISO8859-2 IBM852 CP1250";;
al@19759 68 *-da) C="Danish"
al@19759 69 get_locale "da" "" "" \
al@19759 70 "dk-latin1" "DK:dk" \
al@19759 71 "IBM865 ISO8859-1 ISO8859-15";;
al@19759 72 *-de) C="German"
al@19759 73 # fr_BE for de_BE
al@19759 74 get_locale "de" "fr_BE" "" \
al@19759 75 "de-latin1 de_CH-latin1 sg-latin1" "DE:de AT:at CH:ch" \
al@19759 76 "ISO8859-1 ISO8859-15";;
al@19759 77 *-el) C="Greek"
al@19759 78 get_locale "el" "" "" \
al@19759 79 "gr" "GR:gr US:us" \
al@19759 80 "ISO8859-7 IBM869 CP1253 ISO8859-15";;
al@19759 81 *-en) C="English"
al@19759 82 get_locale "en" "" "" \
al@19759 83 "uk us us-acentos dvorak dvorak-l dvorak-r" "CM:cm GH:gh NG:ng ZA:za GB:gb US:us" \
al@19759 84 "ISO8859-1 ISO8859-15";;
al@19759 85 *-es) C="Spanish"
al@19759 86 get_locale "es" "" "" \
al@19759 87 "es" "ES:es ES:latam" \
al@19759 88 "ISO8859-1 ISO8859-15";;
al@19759 89 *-fi) C="Finnish"
al@19759 90 get_locale "fi" "" "" \
al@19759 91 "fi" "FI:fi" \
al@19759 92 "ISO8859-1 ISO8859-15";;
al@19759 93 *-fr) C="French"
al@19759 94 # en_CA for fr_CA; de_CH for fr_CH
al@19759 95 get_locale "fr" "en_CA de_CH" "" \
al@19759 96 "fr-latin1 be-latin1 cf fr_CH-latin1" "FR:fr CA:ca CD:cd GN:gn" \
al@19759 97 "ISO8859-1 ISO8859-15";;
al@19759 98 *-hr) C="Croatian"
al@19759 99 get_locale "hr" "" "" \
al@19759 100 "croat" "HR:hr" \
al@19759 101 "ISO8859-2";;
al@19759 102 *-hu) C="Hungarian"
al@19759 103 get_locale "hu" "" "" \
al@19759 104 "hu" "HU:hu" \
al@19759 105 "ISO8859-2 IBM852 CP1250";;
al@19759 106 *-id) C="Indonesian"
al@19759 107 get_locale "id" "" "" \
al@19759 108 "" "" \
al@19759 109 "ISO8859-1 ISO8859-15";;
al@19759 110 *-is) C="Icelandic"
al@19759 111 get_locale "is" "" "" \
al@19759 112 "is-latin1" "IS:is" \
al@19759 113 "ISO8859-1 ISO8859-15";;
al@19759 114 *-it) C="Italian"
al@19759 115 # de_CH for it_CH
al@19759 116 get_locale "it" "de_CH" "" \
al@19759 117 "it" "IT:it" \
al@19759 118 "ISO8859-1 ISO8859-15";;
al@19759 119 *-ja) C="Japanese"
al@19759 120 get_locale "ja" "translit_cjk_variants" "" \
al@19759 121 "jp106" "JP:jp US:us" \
al@19759 122 "EUC-JP EUC-JP-MS SJIS libJIS";;
al@19759 123 *-nb) C="Norwegian (Bokmål)"
al@19759 124 get_locale "nb" "" "" \
al@19759 125 "no-latin1" "NO:no" \
al@19759 126 "ISO8859-1 ISO8859-15";;
al@19759 127 *-nl) C="Dutch"
al@19759 128 get_locale "nl" "" "" \
al@19759 129 "nl2" "NL:nl" \
al@19759 130 "ISO8859-1 ISO8859-15";;
al@19759 131 *-nn) C="Norwegian (Nynorsk)"
al@19759 132 get_locale "nn" "" "" \
al@19759 133 "no-latin1" "NO:no" \
al@19759 134 "ISO8859-1 ISO8859-15";;
al@19759 135 *-pl) C="Polish"
al@19759 136 get_locale "pl" "" "" \
al@19759 137 "pl2" "PL:pl" \
al@19759 138 "ISO8859-2 IBM852 CP1250";;
al@19759 139 *-pt) C="Portuguese"
al@19759 140 get_locale "pt" "" "pt_PT pt_PT@euro" \
al@19759 141 "pt-latin1" "PT:pt" \
al@19759 142 "ISO8859-1 ISO8859-15";;
al@19759 143 *-pt_BR) C="Portuguese/Brazilian"
al@19759 144 # pt_PT for pt_BR
al@19759 145 get_locale "pt_BR" "pt_PT" "" \
al@19759 146 "br-abnt2 us-acentos" "BR:br" \
al@19759 147 "ISO8859-1 ISO8859-15";;
al@19759 148 *-ro) C="Romanian"
al@19759 149 get_locale "ro" "" "" \
al@19759 150 "ro ro_std ro_win" "RO:ro" \
al@19759 151 "IBM852 CP1250 ISO8859-2 ISO8859-16";;
al@19759 152 *-ru) C="Russian"
al@19759 153 get_locale "ru" "" "" \
al@19759 154 "ru" "US:us RU:ru UA:ua" \
al@19759 155 "ISO8859-5 KOI8-R KOI8-U IBM866 CP1251";;
al@19759 156 *-sl) C="Slovenian"
al@19759 157 get_locale "sl" "" "" \
al@19759 158 "slovene" "SI:si" \
al@19759 159 "ISO8859-2 IBM852 CP1250";;
al@19759 160 *-sv) C="Swedish"
al@19759 161 # fi_FI for sv_FI; fi_FI@euro for sv_FI@euro
al@19759 162 get_locale "sv" "fi_FI fi_FI@euro" "" \
al@19759 163 "se-lat6" "SE:se" \
al@19759 164 "ISO8859-1 ISO8859-15";;
al@19759 165 *-tr) C="Turkish"
al@19759 166 get_locale "tr" "" "" \
al@19759 167 "trq tr_q-latin5" "TR:tr" \
al@19759 168 "ISO8859-9";;
al@19759 169 *-uk) C="Ukrainian"
al@19759 170 get_locale "uk" "" "" \
al@19759 171 "ua" "US:us RU:ru UA:ua" \
al@19759 172 "ISO8859-5 KOI8-R KOI8-U IBM866 CP1251";;
al@19759 173 *-zh_CN) C="Chinese Simplified"
al@19759 174 get_locale "zh_CN" "iso14651_t1_pinyin" "" \
al@19759 175 "" "CN:cn" \
al@19759 176 "EUC-CN GBK GB18030 libGB";;
al@19759 177 *-zh_TW) C="Chinese Traditional"
al@19759 178 get_locale "zh_TW" "zh_CN" "" \
al@19759 179 "" "TW:tw" \
al@19759 180 "BIG5 EUC-TW libCNS";;
al@19759 181 esac
al@19759 182
al@19759 183 case $PACKAGE in
al@19759 184 *-i18n) DEPENDS="";;
al@19759 185 *-zh_CN) DEPENDS="glibc-base wqy-microhei";;
al@19759 186 *-zh_TW) DEPENDS="glibc-base pcf-uming";;
al@19759 187 *) DEPENDS="glibc-base";;
al@19759 188 esac
al@19759 189
al@19759 190 case $PACKAGE in
al@19759 191 locale-*) CAT="localization|$C locale pack";;
al@19759 192 esac
pankso@3087 193 }
al@19759 194
al@19759 195 # Back to C if it's the last used locale.
al@19759 196 post_remove() {
al@19759 197 [ "$PACKAGE" == 'slitaz-i18n' ] ||
al@19759 198 echo -e "LANG=C\nLC_ALL=C" > "$1/etc/locale.conf"
al@19759 199 }
al@19759 200
al@19759 201 post_install_locale_zh_CN() {
al@19759 202 if [ -z "$1" ]; then
al@19759 203 echo LANG=zh_CN.UTF-8 > /etc/locale.conf
al@19759 204 echo Asia/Shanghai > /etc/TZ
al@19759 205 export TZ=Asia/Shanghai
al@19759 206 [ -e /dev/misc/rtc ] && hwclock --hctosys
al@19759 207 fi
al@19759 208 :
al@19759 209 }