python-ldap: drop package

This commit is contained in:
Đoàn Trần Công Danh 2020-09-20 19:36:17 +07:00
parent 7d01b39db8
commit 7be0acbd6f
4 changed files with 21 additions and 30 deletions

View File

@ -1,29 +0,0 @@
# Template file for 'python-ldap'
pkgname=python-ldap
version=3.2.0
revision=2
build_style=python-module
pycompile_module="ldap ldapurl.py ldif.py slapdtest"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel libldap-devel"
depends="python-pyasn1-modules"
checkdepends="openldap openldap-tools"
short_desc="Python2 modules for implementing LDAP clients"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="Python-2.0"
homepage="https://www.python-ldap.org"
distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=7d1c4b15375a533564aad3d3deade789221e450052b21ebb9720fb822eccdb8e
pre_build() {
sed -i "s:^libs = .*:libs = ldap_r lber sasl2 ssl crypto:" setup.cfg
}
python3-ldap_package() {
depends="python3-pyasn1-modules"
short_desc="${short_desc/Python2/Python3}"
pycompile_module="ldap ldapurl.py ldif.py slapdtest"
pkg_install() {
vmove usr/lib/python3*
}
}

View File

@ -1 +0,0 @@
python-ldap

View File

@ -0,0 +1,21 @@
# Template file for 'python3-ldap'
pkgname=python3-ldap
_pkgname=python-ldap
version=3.2.0
revision=2
wrksrc=$_pkgname-$version
build_style=python3-module
hostmakedepends="python3-setuptools"
makedepends="python3-devel libldap-devel"
depends="python3-pyasn1-modules"
checkdepends="openldap openldap-tools"
short_desc="Python3 modules for implementing LDAP clients"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="Python-2.0"
homepage="https://www.python-ldap.org"
distfiles="${PYPI_SITE}/p/${_pkgname}/${_pkgname}-${version}.tar.gz"
checksum=7d1c4b15375a533564aad3d3deade789221e450052b21ebb9720fb822eccdb8e
pre_build() {
sed -i "s:^libs = .*:libs = ldap_r lber sasl2 ssl crypto:" setup.cfg
}