mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-09 23:37:05 +02:00
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=py-ldap3
|
|
_pkgname=ldap3
|
|
pkgver=2.4
|
|
pkgrel=0
|
|
pkgdesc="A strictly RFC 4510 conforming LDAP V3 pure Python client"
|
|
url="https://github.com/cannatag/ldap3"
|
|
arch="noarch"
|
|
license="LGPL3"
|
|
depends="py-asn1"
|
|
makedepends="python2-dev python3-dev py-setuptools"
|
|
subpackages="py2-$_pkgname:_subpackage py3-$_pkgname:_subpackage"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/cannatag/$_pkgname/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
options="!check" # tests need running LDAP server
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
python2 setup.py build
|
|
python3 setup.py build
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
}
|
|
|
|
_subpackage() {
|
|
local pyver="${subpkgname:2:1}"
|
|
local python="python$pyver"
|
|
pkgdesc="$pkgdesc (for $python)"
|
|
depends="$python ${depends//py-/py$pyver-}"
|
|
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
|
|
|
cd "$builddir"
|
|
$python setup.py install --prefix=/usr --root="$subpkgdir"
|
|
}
|
|
|
|
sha512sums="d580a9a5e5dd34e1c3218ed7912ebb4da9fc1673c337a37b50ae0577cc2f2fb3073a77ee031885d40a68aef86955c137474e77e94b92e03a2d9511b60780dde5 py-ldap3-2.4.tar.gz"
|