wok-current view squirrelmail-compatibility-plugin/receipt @ rev 25416

updated wxWidgets and wxWidgets-dev (3.1.3 -> 3.2.0)
author Hans-G?nter Theisgen
date Thu Aug 04 09:20:59 2022 +0100 (2022-08-04)
parents 46dcc80bef41
children
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-compatibility-plugin"
4 VERSION="2.0.16-1.0"
5 CATEGORY="network"
6 SHORT_DESC="Compatibility plugin for Web mail, needed by many plugins."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.squirrelmail.org/"
11 SOURCE="compatibility"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
15 DEPENDS="squirrelmail"
17 HOST_ARCH="any"
19 current_version()
20 {
21 wget -O - "$WEB_SITE/plugin_view.php?id=152" 2>/dev/null | \
22 sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q"
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir -p $DESTDIR
29 cp -a $src $DESTDIR/$SOURCE
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share/squirrelmail/plugins
36 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
37 }
39 post_install()
40 {
41 local file
42 local line
43 file="$1/usr/share/squirrelmail/functions/strings.php"
44 line="include_once(SM_PATH . 'plugins/compatibility/functions.php');"
45 grep -qs "$line" "$file" || sed -i "s|.*global.php.*|&\n$line|" "$file"
46 }