wok-next annotate squirrelmail-locales/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | 9278a60d6895 |
children | d5aab818505e |
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 |
pascal@1198 | 23 compile_rules() |
pascal@1198 | 24 { |
al@19741 | 25 mkdir -p $install/usr/share/squirrelmail |
al@19741 | 26 cp -a locale help images $install/usr/share/squirrelmail |
al@19741 | 27 chown -R root:root $install |
pascal@1198 | 28 } |
pascal@1198 | 29 |
pascal@1198 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1198 | 31 genpkg_rules() |
pascal@1198 | 32 { |
al@19741 | 33 case $PACKAGE in |
al@19741 | 34 squirrelmail-locales) |
al@19741 | 35 DEPENDS="$SPLIT" |
al@19741 | 36 ;; |
al@19741 | 37 *) |
al@19741 | 38 locale=${PACKAGE#*-} |
al@19741 | 39 copy /$locale/ sec_remove_$locale.png |
al@19741 | 40 name=$(grep "($locale)" $src/ReleaseNotes.locales | sed 's| (.*||; s| Bokm.*| Bokmål|') |
al@19741 | 41 CAT="localization|$name locale" |
al@19741 | 42 DEPENDS="squirrelmail" |
al@19741 | 43 ;; |
al@19741 | 44 esac |
pascal@1198 | 45 } |
pascal@1198 | 46 |
al@19741 | 47 post_install() |
pascal@1198 | 48 { |
al@19741 | 49 case $PACKAGE in |
al@19741 | 50 squirrelmail-locales);; |
al@19741 | 51 *) |
al@19741 | 52 sed -i "/^\$squirrelmail_default_language/s|=.*|= '${PACKAGE#*-}';|" \ |
al@19741 | 53 "$1/etc/squirrelmail/config.php";; |
al@19741 | 54 esac |
pascal@1198 | 55 } |