SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "python-pychart"

# SliTaz package receipt.

PACKAGE="python-pychart"
VERSION="1.39"
CATEGORY="development"
SHORT_DESC="Python library for creating EPS, PDF, PNG or SVG."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL"
SOURCE="Python-Chart"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="https://pypi.org/project/$SOURCE/"
WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"

DEPENDS="python"
BUILD_DEPENDS="python"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | sed '/ Python-Chart /!d;s|.*Python-Chart ||'
}

# Rules to configure and make the package.
compile_rules()
{
    python setup.py build
    python setup.py install --root=$DESTDIR
}

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

# Remove old package.
post_install()
{
    [ ! -d "$1/var/lib/tazpkg/installed/pychart" ] ||
    rm -rf "$1/var/lib/tazpkg/installed/pychart"
}

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)