aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-pyldap/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-08-17 14:01:53 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-08-17 14:01:53 +0200
commit74e9f52e49852ae8fda7bc72059950892ef8ed7e (patch)
treef46b23b6bdb6eed9120edcd3b310b472681a003a /community/py-pyldap/APKBUILD
parent8f14e4301d4b9a331bb09913dd4429a5dee56ced (diff)
downloadaports-74e9f52e49852ae8fda7bc72059950892ef8ed7e.tar.bz2
aports-74e9f52e49852ae8fda7bc72059950892ef8ed7e.tar.xz
community/py-pyldap: moved from testing
Diffstat (limited to 'community/py-pyldap/APKBUILD')
-rw-r--r--community/py-pyldap/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/community/py-pyldap/APKBUILD b/community/py-pyldap/APKBUILD
new file mode 100644
index 0000000000..ca755c2e27
--- /dev/null
+++ b/community/py-pyldap/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=py-pyldap
+_pkgname=${pkgname#py-}
+pkgver=2.4.25.1
+_vermajor=${pkgver%%.*}
+_verminor=${pkgver#*.}; _verminor=${_verminor%%.*}
+pkgrel=1
+pkgdesc="Python modules for implementing LDAP clients"
+url="https://github.com/pyldap/pyldap"
+arch="noarch"
+license="PSF"
+depends="libldap>=$_vermajor.$_verminor"
+makedepends="python2-dev python3-dev openldap-dev>=$_vermajor.$_verminor"
+subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3"
+source="https://github.com/$_pkgname/$_pkgname/archive/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+
+ python setup.py build || return 1
+ python3 setup.py build
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ _py python2
+}
+
+_py3() {
+ _py python3
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc (for $python)"
+ arch="all"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+md5sums="f64a5506ef98c433bb9e72f3fa073db8 pyldap-2.4.25.1.tar.gz"
+sha256sums="746389c33af6ad62c9f09b06fade2c9fe86842892d63922dbd7b164a9120ff06 pyldap-2.4.25.1.tar.gz"
+sha512sums="9b56793dcf10a9e7fe7161460f69388fd9574e34474f559bf42956689e7d218f1670416a607c0a596a6a0a9d450b719ba1643d6a6629ca70113b5b3048250dc4 pyldap-2.4.25.1.tar.gz"