wok-6.x view squirrelmail-calendard-file-backend/receipt @ rev 24369
updated binutils and libbfd (2.33.1 -> 2.37)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 05 09:26:55 2022 +0100 (2022-02-05) |
parents | 9e01bc6321ea |
children | cb67b4f8be05 |
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-calendard-file-backend"
4 VERSION="1.0-2.0"
5 CATEGORY="network"
6 SHORT_DESC="File-based backend for calendar data for Web mail."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="calendar_file_backend"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.squirrelmail.org/"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
13 PROVIDE="squirrelmail-calendard-backend"
14 HOST_ARCH="any"
16 DEPENDS="squirrelmail"
18 current_version()
19 {
20 wget -O - "$WEB_SITE/plugin_view.php?id=239" 2>/dev/null | \
21 sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q"
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 mkdir -p $DESTDIR
28 cp -a $src $DESTDIR/$SOURCE
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/squirrelmail/plugins
35 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
36 }
38 post_install()
39 {
40 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
41 }
43 pre_remove()
44 {
45 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
46 }