wok-next annotate squirrelmail-smallcal/receipt @ rev 21038
Small updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Nov 08 15:34:32 2018 +0200 (2018-11-08) |
parents | c4e53a39395a |
children |
rev | line source |
---|---|
pascal@1228 | 1 # SliTaz package receipt. |
pascal@1228 | 2 |
pascal@1228 | 3 PACKAGE="squirrelmail-smallcal" |
pascal@1228 | 4 VERSION="0.8-1.2.3" |
pascal@1228 | 5 CATEGORY="network" |
al@21020 | 6 SHORT_DESC="Left side calendar plugin for Web mail" |
pascal@1228 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15200 | 8 LICENSE="GPL2" |
al@21020 | 9 WEB_SITE="http://www.squirrelmail.org/" |
al@21020 | 10 |
pascal@1228 | 11 SOURCE="smallcal" |
pascal@1228 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@15200 | 13 WGET_URL="${WEB_SITE}plugins/$TARBALL" |
pascal@15200 | 14 |
al@21020 | 15 compile_rules() { |
al@21020 | 16 mkdir -p $install |
al@21020 | 17 cp -a $src $install/$SOURCE |
pascal@9069 | 18 } |
pascal@9069 | 19 |
al@21020 | 20 genpkg_rules() { |
pascal@1228 | 21 mkdir -p $fs/usr/share/squirrelmail/plugins |
pascal@15200 | 22 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
al@21020 | 23 DEPENDS="squirrelmail squirrelmail-compatibility-plugin" |
pascal@1228 | 24 } |
pascal@1228 | 25 |
al@21020 | 26 post_install() { |
pascal@18730 | 27 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php" |
al@21020 | 28 |
al@21020 | 29 [ -n "$quiet" ] || cat <<EOF |
al@21020 | 30 |
al@21020 | 31 .------------------------------------. |
al@21020 | 32 | You can enable calendar display in | |
al@21020 | 33 | Option -> Display Preferences | |
al@21020 | 34 '------------------------------------' |
pascal@1228 | 35 EOF |
pascal@1228 | 36 } |
pascal@2245 | 37 |
al@21020 | 38 pre_remove() { |
al@21020 | 39 sed -i "/\$plugins.. = '$SOURCE';/d" "$1/etc/squirrelmail/config_local.php" |
pascal@2245 | 40 } |