wok-next view squirrelmail-compatibility-plugin/receipt @ rev 21057

Deal with HOST_ARCH="any"
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 03 14:47:30 2018 +0200 (2018-12-03)
parents c4e53a39395a
children
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-compatibility-plugin"
4 VERSION="2.0.13-1.0"
5 CATEGORY="network"
6 SHORT_DESC="Compatibility plugin for Web mail need by many plugins"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.squirrelmail.org/"
11 SOURCE="compatibility"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
15 compile_rules() {
16 mkdir -p $install
17 cp -a $src $install/$SOURCE
18 }
20 genpkg_rules() {
21 mkdir -p $fs/usr/share/squirrelmail/plugins
22 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
23 DEPENDS="squirrelmail"
24 }
26 post_install() {
27 local file
28 local line
29 file="$1/usr/share/squirrelmail/functions/strings.php"
30 line="include_once(SM_PATH . 'plugins/compatibility/functions.php');"
31 grep -qs "$line" "$file" || sed -i "s|.*global.php.*|&\n$line|" "$file"
32 }