SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "python-prettytable"

# SliTaz package receipt.

PACKAGE="python-prettytable"
VERSION="0.7.2"
CATEGORY="system-tools"
SHORT_DESC="Python library for easily displaying tabular data in ASCII."
MAINTAINER="pankso@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://pypi.python.org/pypi/PrettyTable"

SOURCE="prettytable"
TARBALL="${SOURCE}-${VERSION}.tar.bz2"
WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"

DEPENDS="python"
BUILD_DEPENDS="python-dev python-distribute python-setuptools"

# What is the latest version available today?
current_version()
{
    wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
    sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
}

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

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/lib    $fs/usr
}
5935 packages and 845883 files in cooking database (Sun Jun 2 00:46:56 2024)