wok-next view squirrelmail-locales/receipt @ rev 20573
More fix libtool
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 13 17:21:19 2018 +0300 (2018-04-13) |
parents | 9278a60d6895 |
children | d5aab818505e |
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 {
25 mkdir -p $install/usr/share/squirrelmail
26 cp -a locale help images $install/usr/share/squirrelmail
27 chown -R root:root $install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 case $PACKAGE in
34 squirrelmail-locales)
35 DEPENDS="$SPLIT"
36 ;;
37 *)
38 locale=${PACKAGE#*-}
39 copy /$locale/ sec_remove_$locale.png
40 name=$(grep "($locale)" $src/ReleaseNotes.locales | sed 's| (.*||; s| Bokm.*| Bokmål|')
41 CAT="localization|$name locale"
42 DEPENDS="squirrelmail"
43 ;;
44 esac
45 }
47 post_install()
48 {
49 case $PACKAGE in
50 squirrelmail-locales);;
51 *)
52 sed -i "/^\$squirrelmail_default_language/s|=.*|= '${PACKAGE#*-}';|" \
53 "$1/etc/squirrelmail/config.php";;
54 esac
55 }