wok-next view squirrelmail-locales/receipt @ rev 20010

Up rsnapshot (1.4.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 21 18:08:51 2017 +0200 (2017-10-21)
parents d51b2411e55e
children c4e53a39395a
line source
1 # SliTaz package receipt v2.
3 PACKAGE="squirrelmail-locales"
4 VERSION="1.4.13-20071220"
5 CATEGORY="meta"
6 SHORT_DESC="Squirrelmail locales"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.squirrelmail.org/"
10 HOST_ARCH="any"
12 TARBALL="all_locales-$VERSION.tar.bz2"
13 WGET_URL="$SF_MIRROR/squirrelmail/$TARBALL"
15 S='squirrelmail'
16 SPLIT="\
17 $S-ar $S-bg_BG $S-bn_IN $S-ca_ES $S-cs_CZ $S-cy_GB $S-da_DK $S-de_DE \
18 $S-el_GR $S-en_GB $S-es_ES $S-et_EE $S-eu_ES $S-fa_IR $S-fi_FI $S-fo_FO \
19 $S-fr_FR $S-fy $S-he_IL $S-hr_HR $S-hu_HU $S-id_ID $S-is_IS $S-it_IT \
20 $S-ja_JP $S-ka $S-ko_KR $S-lt_LT $S-ms_MY $S-nb_NO $S-nl_NL $S-nn_NO \
21 $S-pl_PL $S-pt_BR $S-pt_PT $S-ro_RO $S-ru_RU $S-sk_SK $S-sl_SI $S-sr_YU \
22 $S-sv_SE $S-tr_TR $S-ug $S-uk_UA $S-zh_CN $S-zh_TW"
24 compile_rules()
25 {
26 mkdir -p $install/usr/share/squirrelmail
27 cp -a locale help images $install/usr/share/squirrelmail
28 chown -R root:root $install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 case $PACKAGE in
35 squirrelmail-locales)
36 DEPENDS="$SPLIT"
37 ;;
38 *)
39 locale=${PACKAGE#*-}
40 copy /$locale/ sec_remove_$locale.png
41 name=$(grep "($locale)" $src/ReleaseNotes.locales | sed 's| (.*||; s| Bokm.*| Bokmål|')
42 CAT="localization|$name locale"
43 DEPENDS="squirrelmail"
44 ;;
45 esac
46 }
48 post_install()
49 {
50 case $PACKAGE in
51 squirrelmail-locales);;
52 *)
53 sed -i "/^\$squirrelmail_default_language/s|=.*|= '${PACKAGE#*-}';|" \
54 "$1/etc/squirrelmail/config.php";;
55 esac
56 }