wok view squirrelmail-html/receipt @ rev 22564

updated btrfs packages (4.19.1 -> 5.4)
author Hans-G?nter Theisgen
date Sun Jan 05 16:47:02 2020 +0100 (2020-01-05)
parents 9e01bc6321ea
children 46dcc80bef41
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-html"
4 VERSION="3.8"
5 CATEGORY="network"
6 SHORT_DESC="HTML viewer plugin for squirrelmail."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.squirrelmail.org/"
11 SOURCE="view_as_html"
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 chown -R 80 $fs/usr/share/squirrelmail
32 }
34 post_install()
35 {
36 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
37 }
39 pre_remove()
40 {
41 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
42 }