wok-next diff squirrelmail-smallcal/receipt @ rev 21313

updated iperf (2.0.5 -> 3.7)
author Hans-G?nter Theisgen
date Tue Dec 10 16:12:48 2019 +0100 (2019-12-10)
parents c4e53a39395a
children
line diff
     1.1 --- a/squirrelmail-smallcal/receipt	Fri Mar 02 12:12:14 2018 +0200
     1.2 +++ b/squirrelmail-smallcal/receipt	Tue Dec 10 16:12:48 2019 +0100
     1.3 @@ -3,39 +3,38 @@
     1.4  PACKAGE="squirrelmail-smallcal"
     1.5  VERSION="0.8-1.2.3"
     1.6  CATEGORY="network"
     1.7 -SHORT_DESC="Left side calendar plugin for Web mail."
     1.8 +SHORT_DESC="Left side calendar plugin for Web mail"
     1.9  MAINTAINER="pascal.bellard@slitaz.org"
    1.10  LICENSE="GPL2"
    1.11 +WEB_SITE="http://www.squirrelmail.org/"
    1.12 +
    1.13  SOURCE="smallcal"
    1.14  TARBALL="$SOURCE-$VERSION.tar.gz"
    1.15 -WEB_SITE="http://www.squirrelmail.org/"
    1.16  WGET_URL="${WEB_SITE}plugins/$TARBALL"
    1.17  
    1.18 -DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
    1.19 -
    1.20 -# Rules to configure and make the package.
    1.21 -compile_rules()
    1.22 -{
    1.23 -	mkdir -p $DESTDIR
    1.24 -	cp -a $src $DESTDIR/$SOURCE
    1.25 +compile_rules() {
    1.26 +	mkdir -p $install
    1.27 +	cp -a $src $install/$SOURCE
    1.28  }
    1.29  
    1.30 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.31 -genpkg_rules()
    1.32 -{
    1.33 +genpkg_rules() {
    1.34  	mkdir -p $fs/usr/share/squirrelmail/plugins
    1.35  	cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
    1.36 +	DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
    1.37  }
    1.38  
    1.39 -post_install()
    1.40 -{
    1.41 +post_install() {
    1.42  	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
    1.43 -	cat <<EOF
    1.44 -You can enable calendar display in Option -> Display Preferences
    1.45 +
    1.46 +	[ -n "$quiet" ] || cat <<EOF
    1.47 +
    1.48 +	.------------------------------------.
    1.49 +	| You can enable calendar display in |
    1.50 +	| Option -> Display Preferences      |
    1.51 +	'------------------------------------'
    1.52  EOF
    1.53  }
    1.54  
    1.55 -pre_remove()
    1.56 -{
    1.57 -	sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
    1.58 +pre_remove() {
    1.59 +	sed -i "/\$plugins.. = '$SOURCE';/d" "$1/etc/squirrelmail/config_local.php"
    1.60  }