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 '/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;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
}
5935 packages and 845883 files in cooking database (Sun Jun 2 00:46:56 2024)