wok view squirrelmail-bookmarks/receipt @ rev 24776
jack1: added build dependency gcc83
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 19 17:48:51 2022 +0100 (2022-03-19) |
parents | 46dcc80bef41 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-bookmarks"
4 VERSION="2.0.3-1.4.1"
5 CATEGORY="network"
6 SHORT_DESC="Store and manage favorites lists within the Squirrelmail interface."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="bookmarks"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://www.squirrelmail.org/"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
13 CONFIG_FILES="/etc/squirrelmail/bookmarks_data.php"
14 HOST_ARCH="any"
16 DEPENDS="squirrelmail"
18 current_version()
19 {
20 wget -O - "$WEB_SITE/plugin_view.php?id=93" 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 $fs/etc/squirrelmail
35 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
36 rm -f $fs/usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data.php
37 ln -s ../../usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data_text.php \
38 $fs/etc/squirrelmail/bookmarks_data.php
39 ln -s ../../../../../etc/squirrelmail/bookmarks_data.php \
40 $fs/usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data.php
41 }
43 post_install()
44 {
45 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
46 }
48 pre_remove()
49 {
50 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
51 }