wok-current view squirrelmail-autocomplete/receipt @ rev 24980
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 08 09:19:55 2022 +0000 (2022-05-08) |
parents | 46dcc80bef41 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-autocomplete"
4 VERSION="3.0-1.4.0"
5 CATEGORY="network"
6 SHORT_DESC="Complete To/Cc/Bcc fields plugin for Web mail (IE only)."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.squirrelmail.org/"
11 SOURCE="autocomplete"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
15 DEPENDS="squirrelmail"
17 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
19 HOST_ARCH="any"
21 current_version()
22 {
23 wget -O - "$WEB_SITE/plugin_view.php?id=32" 2>/dev/null | \
24 sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q"
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 mkdir -p $DESTDIR
31 cp -a $src $DESTDIR/$SOURCE
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share/squirrelmail/plugins
38 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
39 }
41 post_install()
42 {
43 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
44 }
46 pre_remove()
47 {
48 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
49 }