wok annotate squirrelmail-compatibility-plugin/receipt @ rev 23496

updated python-invoice2data (0.2.42 -> 0.2.93)
author Hans-G?nter Theisgen
date Mon Apr 06 07:28:30 2020 +0100 (2020-04-06)
parents 9e01bc6321ea
children 46dcc80bef41
rev   line source
pascal@1220 1 # SliTaz package receipt.
pascal@1220 2
pascal@1220 3 PACKAGE="squirrelmail-compatibility-plugin"
Hans-G?nter@21963 4 VERSION="2.0.16-1.0"
pascal@1220 5 CATEGORY="network"
Hans-G?nter@21963 6 SHORT_DESC="Compatibility plugin for Web mail, needed by many plugins."
pascal@1220 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
Hans-G?nter@21963 9 WEB_SITE="http://www.squirrelmail.org/"
Hans-G?nter@21963 10
pascal@1220 11 SOURCE="compatibility"
pascal@1220 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@15000 13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@15000 14
pascal@1220 15 DEPENDS="squirrelmail"
pascal@1220 16
Hans-G?nter@21963 17 HOST_ARCH="any"
Hans-G?nter@21963 18
pascal@9036 19 # Rules to configure and make the package.
pascal@9036 20 compile_rules()
pascal@9036 21 {
pascal@9037 22 mkdir -p $DESTDIR
pascal@9036 23 cp -a $src $DESTDIR/$SOURCE
pascal@9036 24 }
pascal@9036 25
pascal@1220 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1220 27 genpkg_rules()
pascal@1220 28 {
pascal@1220 29 mkdir -p $fs/usr/share/squirrelmail/plugins
pascal@15000 30 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@1220 31 }
pascal@13526 32
pascal@13526 33 post_install()
pascal@13526 34 {
pascal@13526 35 local file
pascal@13526 36 local line
pascal@18730 37 file="$1/usr/share/squirrelmail/functions/strings.php"
pascal@13526 38 line="include_once(SM_PATH . 'plugins/compatibility/functions.php');"
pascal@18730 39 grep -qs "$line" "$file" || sed -i "s|.*global.php.*|&\n$line|" "$file"
pascal@13526 40 }