SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "python-ldap"

# SliTaz package receipt.

PACKAGE="python-ldap"
VERSION="3.1.0"
CATEGORY="development"
SHORT_DESC="An object-oriented API to access LDAP directory servers."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="PSL"
WEB_SITE="https://www.python-ldap.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://files.pythonhosted.org/packages/source/p/$PACKAGE/$TARBALL"

DEPENDS="cyrus-sasl openldap openssl python"
BUILD_DEPENDS="cyrus-sasl-dev openldap-dev openssl-dev python-dev python-setuptools"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/python-ldap/python-ldap/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
}

# 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/usr
    cp -a $install/usr/lib    $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)