wok-next annotate squirrelmail-smallcal/receipt @ rev 16263
ARM: add yad and slitaz-boxes
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Apr 05 08:48:26 2014 +0200 (2014-04-05) |
parents | b936343846df |
children | d51b2411e55e |
rev | line source |
---|---|
pascal@1228 | 1 # SliTaz package receipt. |
pascal@1228 | 2 |
pascal@1228 | 3 PACKAGE="squirrelmail-smallcal" |
pascal@1228 | 4 VERSION="0.8-1.2.3" |
pascal@1228 | 5 CATEGORY="network" |
pascal@1228 | 6 SHORT_DESC="Left side calendar plugin for Web mail." |
pascal@1228 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15200 | 8 LICENSE="GPL2" |
pascal@1228 | 9 SOURCE="smallcal" |
pascal@1228 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@1228 | 11 WEB_SITE="http://www.squirrelmail.org/" |
pascal@15200 | 12 WGET_URL="${WEB_SITE}plugins/$TARBALL" |
pascal@15200 | 13 |
pascal@1228 | 14 DEPENDS="squirrelmail squirrelmail-compatibility-plugin" |
pascal@1228 | 15 |
pascal@9069 | 16 # Rules to configure and make the package. |
pascal@9069 | 17 compile_rules() |
pascal@9069 | 18 { |
pascal@9069 | 19 mkdir -p $DESTDIR |
pascal@9069 | 20 cp -a $src $DESTDIR/$SOURCE |
pascal@9069 | 21 } |
pascal@9069 | 22 |
pascal@1228 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1228 | 24 genpkg_rules() |
pascal@1228 | 25 { |
pascal@1228 | 26 mkdir -p $fs/usr/share/squirrelmail/plugins |
pascal@15200 | 27 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@1228 | 28 } |
pascal@1228 | 29 |
pascal@1228 | 30 post_install() |
pascal@1228 | 31 { |
pascal@1228 | 32 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php |
pascal@1228 | 33 cat <<EOF |
pascal@1228 | 34 You can enable calendar display in Option -> Display Preferences |
pascal@1228 | 35 EOF |
pascal@1228 | 36 } |
pascal@2245 | 37 |
pascal@2260 | 38 pre_remove() |
pascal@2245 | 39 { |
pascal@2245 | 40 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2245 | 41 } |