wok-next annotate squirrelmail-locales/receipt @ rev 21047
Up tazpkg (971), cookutils (1095)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 26 21:15:05 2018 +0200 (2018-11-26) |
parents | c4e53a39395a |
children |
rev | line source |
---|---|
al@19741 | 1 # SliTaz package receipt v2. |
pascal@1198 | 2 |
pascal@1198 | 3 PACKAGE="squirrelmail-locales" |
pascal@1198 | 4 VERSION="1.4.13-20071220" |
pascal@1198 | 5 CATEGORY="meta" |
al@19741 | 6 SHORT_DESC="Squirrelmail locales" |
pascal@1198 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15200 | 8 LICENSE="GPL2" |
pascal@1198 | 9 WEB_SITE="http://www.squirrelmail.org/" |
pascal@15200 | 10 |
al@19741 | 11 TARBALL="all_locales-$VERSION.tar.bz2" |
al@19741 | 12 WGET_URL="$SF_MIRROR/squirrelmail/$TARBALL" |
al@19741 | 13 |
al@19741 | 14 S='squirrelmail' |
al@19741 | 15 SPLIT="\ |
al@19741 | 16 $S-ar $S-bg_BG $S-bn_IN $S-ca_ES $S-cs_CZ $S-cy_GB $S-da_DK $S-de_DE \ |
al@19741 | 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 \ |
al@19741 | 18 $S-fr_FR $S-fy $S-he_IL $S-hr_HR $S-hu_HU $S-id_ID $S-is_IS $S-it_IT \ |
al@19741 | 19 $S-ja_JP $S-ka $S-ko_KR $S-lt_LT $S-ms_MY $S-nb_NO $S-nl_NL $S-nn_NO \ |
al@19741 | 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 \ |
al@19741 | 21 $S-sv_SE $S-tr_TR $S-ug $S-uk_UA $S-zh_CN $S-zh_TW" |
pascal@1198 | 22 |
al@21020 | 23 compile_rules() { |
al@19741 | 24 mkdir -p $install/usr/share/squirrelmail |
al@19741 | 25 cp -a locale help images $install/usr/share/squirrelmail |
al@19741 | 26 chown -R root:root $install |
pascal@1198 | 27 } |
pascal@1198 | 28 |
al@21020 | 29 genpkg_rules() { |
al@19741 | 30 case $PACKAGE in |
al@19741 | 31 squirrelmail-locales) |
al@19741 | 32 DEPENDS="$SPLIT" |
al@19741 | 33 ;; |
al@19741 | 34 *) |
al@19741 | 35 locale=${PACKAGE#*-} |
al@19741 | 36 copy /$locale/ sec_remove_$locale.png |
al@21020 | 37 name=$(grep "($locale)" $src/ReleaseNotes.locales | sed 's| (.*||; s| Bokm.*| Bokmål|') #" |
al@19741 | 38 CAT="localization|$name locale" |
al@19741 | 39 DEPENDS="squirrelmail" |
al@19741 | 40 ;; |
al@19741 | 41 esac |
pascal@1198 | 42 } |
pascal@1198 | 43 |
al@21020 | 44 post_install() { |
al@19741 | 45 case $PACKAGE in |
al@19741 | 46 squirrelmail-locales);; |
al@19741 | 47 *) |
al@19741 | 48 sed -i "/^\$squirrelmail_default_language/s|=.*|= '${PACKAGE#*-}';|" \ |
al@19741 | 49 "$1/etc/squirrelmail/config.php";; |
al@19741 | 50 esac |
pascal@1198 | 51 } |