wok-next view squirrelmail-smallcal/receipt @ rev 14253

readline: fix compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 25 16:15:46 2013 +0100 (2013-03-25)
parents ff4c00ab546f
children b13ed9740841
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 SOURCE="smallcal"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.squirrelmail.org/"
11 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 mkdir -p $DESTDIR
18 cp -a $src $DESTDIR/$SOURCE
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/usr/share/squirrelmail/plugins
25 cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins
26 }
28 post_install()
29 {
30 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
31 cat <<EOF
32 You can enable calendar display in Option -> Display Preferences
33 EOF
34 }
36 pre_remove()
37 {
38 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
39 }