wok annotate squirrelmail-smallcal/receipt @ rev 25074

Add python-ipaddress
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 13 19:39:39 2022 +0000 (23 months ago)
parents 46dcc80bef41
children
rev   line source
pascal@1228 1 # SliTaz package receipt.
pascal@1228 2
pascal@1228 3 PACKAGE="squirrelmail-smallcal"
pascal@1228 4 VERSION="0.8-1.2.3"
pascal@1228 5 CATEGORY="network"
pascal@1228 6 SHORT_DESC="Left side calendar plugin for Web mail."
pascal@1228 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15200 8 LICENSE="GPL2"
pascal@1228 9 SOURCE="smallcal"
pascal@1228 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@24746 11 WEB_SITE="https://www.squirrelmail.org/"
pascal@15200 12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@16264 13 HOST_ARCH="any"
pascal@15200 14
pascal@1228 15 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
pascal@1228 16
pascal@24094 17 current_version()
pascal@24094 18 {
pascal@24094 19 wget -O - "$WEB_SITE/plugin_view.php?id=90" 2>/dev/null | \
pascal@24094 20 sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q"
pascal@24094 21 }
pascal@24094 22
pascal@9069 23 # Rules to configure and make the package.
pascal@9069 24 compile_rules()
pascal@9069 25 {
pascal@9069 26 mkdir -p $DESTDIR
pascal@9069 27 cp -a $src $DESTDIR/$SOURCE
pascal@9069 28 }
pascal@9069 29
pascal@1228 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1228 31 genpkg_rules()
pascal@1228 32 {
pascal@1228 33 mkdir -p $fs/usr/share/squirrelmail/plugins
pascal@15200 34 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@1228 35 }
pascal@1228 36
pascal@1228 37 post_install()
pascal@1228 38 {
pascal@18730 39 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
pascal@1228 40 cat <<EOF
pascal@1228 41 You can enable calendar display in Option -> Display Preferences
pascal@1228 42 EOF
pascal@1228 43 }
pascal@2245 44
pascal@2260 45 pre_remove()
pascal@2245 46 {
pascal@2245 47 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2245 48 }