wok-current view squirrelmail-msg_flags/receipt @ rev 23332
updated perl-file-slurp (9999.13 -> 9999.30)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 31 07:01:35 2020 +0100 (2020-03-31) |
parents | 9e01bc6321ea |
children | 46dcc80bef41 |
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-msg_flags"
4 VERSION="1.4.20-1.4.3"
5 CATEGORY="network"
6 SHORT_DESC="Few icons and flags for squirrelmail."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.squirrelmail.org/"
11 SOURCE="msg_flags"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
15 DEPENDS="squirrelmail"
17 HOST_ARCH="any"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 mkdir -p $DESTDIR
23 cp -a $src $DESTDIR/$SOURCE
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share/squirrelmail/plugins
30 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
31 }
33 post_install()
34 {
35 ( cd "$1/usr/share/squirrelmail/plugins/$SOURCE"
36 patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff )
37 echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers"
38 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
39 }
41 pre_remove()
42 {
43 ( cd /usr/share/squirrelmail/plugins/$SOURCE
44 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
45 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers
46 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
47 }