wok-next annotate squirrelmail-locales/receipt @ rev 20380
qtwebkit: up deps, cflags
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Mon Nov 27 13:21:54 2017 +0100 (2017-11-27) |
parents | d51b2411e55e |
children | c4e53a39395a |
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@16264 | 10 HOST_ARCH="any" |
pascal@15200 | 11 |
al@19741 | 12 TARBALL="all_locales-$VERSION.tar.bz2" |
al@19741 | 13 WGET_URL="$SF_MIRROR/squirrelmail/$TARBALL" |
al@19741 | 14 |
al@19741 | 15 S='squirrelmail' |
al@19741 | 16 SPLIT="\ |
al@19741 | 17 $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 | 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 \ |
al@19741 | 19 $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 | 20 $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 | 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 \ |
al@19741 | 22 $S-sv_SE $S-tr_TR $S-ug $S-uk_UA $S-zh_CN $S-zh_TW" |
pascal@1198 | 23 |
pascal@1198 | 24 compile_rules() |
pascal@1198 | 25 { |
al@19741 | 26 mkdir -p $install/usr/share/squirrelmail |
al@19741 | 27 cp -a locale help images $install/usr/share/squirrelmail |
al@19741 | 28 chown -R root:root $install |
pascal@1198 | 29 } |
pascal@1198 | 30 |
pascal@1198 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1198 | 32 genpkg_rules() |
pascal@1198 | 33 { |
al@19741 | 34 case $PACKAGE in |
al@19741 | 35 squirrelmail-locales) |
al@19741 | 36 DEPENDS="$SPLIT" |
al@19741 | 37 ;; |
al@19741 | 38 *) |
al@19741 | 39 locale=${PACKAGE#*-} |
al@19741 | 40 copy /$locale/ sec_remove_$locale.png |
al@19741 | 41 name=$(grep "($locale)" $src/ReleaseNotes.locales | sed 's| (.*||; s| Bokm.*| Bokmål|') |
al@19741 | 42 CAT="localization|$name locale" |
al@19741 | 43 DEPENDS="squirrelmail" |
al@19741 | 44 ;; |
al@19741 | 45 esac |
pascal@1198 | 46 } |
pascal@1198 | 47 |
al@19741 | 48 post_install() |
pascal@1198 | 49 { |
al@19741 | 50 case $PACKAGE in |
al@19741 | 51 squirrelmail-locales);; |
al@19741 | 52 *) |
al@19741 | 53 sed -i "/^\$squirrelmail_default_language/s|=.*|= '${PACKAGE#*-}';|" \ |
al@19741 | 54 "$1/etc/squirrelmail/config.php";; |
al@19741 | 55 esac |
pascal@1198 | 56 } |