SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "squirrelmail-sizes"

# SliTaz package receipt.

PACKAGE="squirrelmail-sizes"
VERSION="1.5-1.4.0"
CATEGORY="network"
SHORT_DESC="Folder sizes plugin for Web mail."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
SOURCE="folder_sizes"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="https://www.squirrelmail.org/"
WGET_URL="${WEB_SITE}plugins/$TARBALL"
HOST_ARCH="any"

DEPENDS="squirrelmail"

current_version()
{
    wget -O - "$WEB_SITE/plugin_view.php?id=87" 2>/dev/null | \
    sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q"
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir -p $DESTDIR
    cp -a $src $DESTDIR/$SOURCE
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/squirrelmail/plugins
    cp -a  $install/$SOURCE $fs/usr/share/squirrelmail/plugins
}

post_install()
{
    echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
}

pre_remove()
{
    sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)