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

dropbear: add ed25519 key
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 25 08:01:52 2020 +0000 (2020-06-25)
parents c4e53a39395a
children
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/"
11 TARBALL="all_locales-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/squirrelmail/$TARBALL"
14 S='squirrelmail'
15 SPLIT="\
16 $S-ar $S-bg_BG $S-bn_IN $S-ca_ES $S-cs_CZ $S-cy_GB $S-da_DK $S-de_DE \
17 $S-el_GR $S-en_GB $S-es_ES $S-et_EE $S-eu_ES $S-fa_IR $S-fi_FI $S-fo_FO \
18 $S-fr_FR $S-fy $S-he_IL $S-hr_HR $S-hu_HU $S-id_ID $S-is_IS $S-it_IT \
19 $S-ja_JP $S-ka $S-ko_KR $S-lt_LT $S-ms_MY $S-nb_NO $S-nl_NL $S-nn_NO \
20 $S-pl_PL $S-pt_BR $S-pt_PT $S-ro_RO $S-ru_RU $S-sk_SK $S-sl_SI $S-sr_YU \
21 $S-sv_SE $S-tr_TR $S-ug $S-uk_UA $S-zh_CN $S-zh_TW"
23 compile_rules() {
24 mkdir -p $install/usr/share/squirrelmail
25 cp -a locale help images $install/usr/share/squirrelmail
26 chown -R root:root $install
27 }
29 genpkg_rules() {
30 case $PACKAGE in
31 squirrelmail-locales)
32 DEPENDS="$SPLIT"
33 ;;
34 *)
35 locale=${PACKAGE#*-}
36 copy /$locale/ sec_remove_$locale.png
37 name=$(grep "($locale)" $src/ReleaseNotes.locales | sed 's| (.*||; s| Bokm.*| Bokmål|') #"
38 CAT="localization|$name locale"
39 DEPENDS="squirrelmail"
40 ;;
41 esac
42 }
44 post_install() {
45 case $PACKAGE in
46 squirrelmail-locales);;
47 *)
48 sed -i "/^\$squirrelmail_default_language/s|=.*|= '${PACKAGE#*-}';|" \
49 "$1/etc/squirrelmail/config.php";;
50 esac
51 }