wok-current view squirrelmail-smallcal/receipt @ rev 15512

Up: thunderbird-langpack-es_AR (17.0.10esr)
author Dominique Corbex <domcox@slitaz.org>
date Tue Nov 19 22:24:18 2013 +0100 (2013-11-19)
parents b936343846df
children d51b2411e55e
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-smallcal"
4 VERSION="0.8-1.2.3"
5 CATEGORY="network"
6 SHORT_DESC="Left side calendar plugin for Web mail."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="smallcal"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.squirrelmail.org/"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
14 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 mkdir -p $DESTDIR
20 cp -a $src $DESTDIR/$SOURCE
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/share/squirrelmail/plugins
27 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
28 }
30 post_install()
31 {
32 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
33 cat <<EOF
34 You can enable calendar display in Option -> Display Preferences
35 EOF
36 }
38 pre_remove()
39 {
40 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
41 }