wok annotate squirrelmail-smallcal/receipt @ rev 20985
Add libgit2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 06 19:24:05 2019 +0100 (2019-03-06) |
parents | d51b2411e55e |
children | 46dcc80bef41 |
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" |
pascal@1228 | 6 SHORT_DESC="Left side calendar plugin for Web mail." |
pascal@1228 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15200 | 8 LICENSE="GPL2" |
pascal@1228 | 9 SOURCE="smallcal" |
pascal@1228 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@1228 | 11 WEB_SITE="http://www.squirrelmail.org/" |
pascal@15200 | 12 WGET_URL="${WEB_SITE}plugins/$TARBALL" |
pascal@16264 | 13 HOST_ARCH="any" |
pascal@15200 | 14 |
pascal@1228 | 15 DEPENDS="squirrelmail squirrelmail-compatibility-plugin" |
pascal@1228 | 16 |
pascal@9069 | 17 # Rules to configure and make the package. |
pascal@9069 | 18 compile_rules() |
pascal@9069 | 19 { |
pascal@9069 | 20 mkdir -p $DESTDIR |
pascal@9069 | 21 cp -a $src $DESTDIR/$SOURCE |
pascal@9069 | 22 } |
pascal@9069 | 23 |
pascal@1228 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1228 | 25 genpkg_rules() |
pascal@1228 | 26 { |
pascal@1228 | 27 mkdir -p $fs/usr/share/squirrelmail/plugins |
pascal@15200 | 28 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@1228 | 29 } |
pascal@1228 | 30 |
pascal@1228 | 31 post_install() |
pascal@1228 | 32 { |
pascal@18730 | 33 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php" |
pascal@1228 | 34 cat <<EOF |
pascal@1228 | 35 You can enable calendar display in Option -> Display Preferences |
pascal@1228 | 36 EOF |
pascal@1228 | 37 } |
pascal@2245 | 38 |
pascal@2260 | 39 pre_remove() |
pascal@2245 | 40 { |
pascal@2245 | 41 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2245 | 42 } |