wok view squirrelmail-smallcal/receipt @ rev 16550

ttf-dejavu, ttf-dejavu-extra: up (2.34); ttf-roboto, ttf-roboto-base: up (1.2); ttf-mgopen: fix wget url
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Apr 29 19:18:57 2014 +0000 (2014-04-29)
parents b13ed9740841
children 9e01bc6321ea
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"
13 HOST_ARCH="any"
15 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mkdir -p $DESTDIR
21 cp -a $src $DESTDIR/$SOURCE
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share/squirrelmail/plugins
28 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
29 }
31 post_install()
32 {
33 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
34 cat <<EOF
35 You can enable calendar display in Option -> Display Preferences
36 EOF
37 }
39 pre_remove()
40 {
41 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
42 }