wok view squirrelmail-smallcal/receipt @ rev 24746
ncursesw-dev: add pkg config files (again)
| author | Pascal Bellard <pascal.bellard@slitaz.org> | 
|---|---|
| date | Wed Mar 16 11:02:39 2022 +0000 (2022-03-16) | 
| parents | 46dcc80bef41 | 
| children | 
 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 LICENSE="GPL2"
     9 SOURCE="smallcal"
    10 TARBALL="$SOURCE-$VERSION.tar.gz"
    11 WEB_SITE="https://www.squirrelmail.org/"
    12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
    13 HOST_ARCH="any"
    15 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
    17 current_version()
    18 {
    19 	wget -O - "$WEB_SITE/plugin_view.php?id=90" 2>/dev/null | \
    20 	sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q"
    21 }
    23 # Rules to configure and make the package.
    24 compile_rules()
    25 {
    26 	mkdir -p $DESTDIR
    27 	cp -a $src $DESTDIR/$SOURCE
    28 }
    30 # Rules to gen a SliTaz package suitable for Tazpkg.
    31 genpkg_rules()
    32 {
    33 	mkdir -p $fs/usr/share/squirrelmail/plugins
    34 	cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
    35 }
    37 post_install()
    38 {
    39 	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
    40 	cat <<EOF
    41 You can enable calendar display in Option -> Display Preferences
    42 EOF
    43 }
    45 pre_remove()
    46 {
    47 	sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
    48 }