wok annotate squirrelmail-autocomplete/receipt @ rev 25164

updated python-antlr (3.5.2 -> 3.5.3)
author Hans-G?nter Theisgen
date Fri Jul 01 10:50:21 2022 +0100 (23 months ago)
parents 46dcc80bef41
children
rev   line source
pascal@2247 1 # SliTaz package receipt.
pascal@2247 2
pascal@2247 3 PACKAGE="squirrelmail-autocomplete"
Hans-G?nter@21961 4 VERSION="3.0-1.4.0"
pascal@2247 5 CATEGORY="network"
pascal@2247 6 SHORT_DESC="Complete To/Cc/Bcc fields plugin for Web mail (IE only)."
pascal@2247 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15200 8 LICENSE="GPL2"
pascal@24746 9 WEB_SITE="https://www.squirrelmail.org/"
Hans-G?nter@21961 10
pascal@2247 11 SOURCE="autocomplete"
Hans-G?nter@21962 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2247 13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@2247 14
pascal@15200 15 DEPENDS="squirrelmail"
pascal@15200 16
Hans-G?nter@21961 17 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
Hans-G?nter@21961 18
Hans-G?nter@21961 19 HOST_ARCH="any"
Hans-G?nter@21961 20
pascal@24094 21 current_version()
pascal@24094 22 {
pascal@24094 23 wget -O - "$WEB_SITE/plugin_view.php?id=32" 2>/dev/null | \
pascal@24094 24 sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q"
pascal@24094 25 }
pascal@24094 26
pascal@9036 27 # Rules to configure and make the package.
pascal@9036 28 compile_rules()
pascal@9036 29 {
pascal@9037 30 mkdir -p $DESTDIR
pascal@9036 31 cp -a $src $DESTDIR/$SOURCE
pascal@9036 32 }
pascal@9036 33
pascal@2247 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2247 35 genpkg_rules()
pascal@2247 36 {
pascal@2247 37 mkdir -p $fs/usr/share/squirrelmail/plugins
pascal@15200 38 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@2247 39 }
pascal@2247 40
pascal@2247 41 post_install()
pascal@2247 42 {
pascal@18730 43 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
pascal@2247 44 }
pascal@2247 45
pascal@2260 46 pre_remove()
pascal@2247 47 {
pascal@2247 48 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2247 49 }