wok-next view squirrelmail-msg_flags/receipt @ rev 20859

Update ALSA stack (1.1.6)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jun 27 13:35:43 2018 +0300 (2018-06-27)
parents 9e01bc6321ea
children d5aab818505e
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-msg_flags"
4 VERSION="1.4.15a-1.4.3"
5 CATEGORY="network"
6 SHORT_DESC="Few icons and flags for Web mail."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="msg_flags"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.squirrelmail.org/"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
14 DEPENDS="squirrelmail"
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 ( cd "$1/usr/share/squirrelmail/plugins/$SOURCE"
33 patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff )
34 echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers"
35 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
36 }
38 pre_remove()
39 {
40 ( cd /usr/share/squirrelmail/plugins/$SOURCE
41 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
42 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers
43 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
44 }