[arch-commits] Commit in python-ldap/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Nov 10 04:00:38 UTC 2020
Date: Tuesday, November 10, 2020 @ 04:00:38
Author: felixonmars
Revision: 748352
archrelease: copy trunk to community-staging-x86_64
Added:
python-ldap/repos/community-staging-x86_64/
python-ldap/repos/community-staging-x86_64/PKGBUILD
(from rev 748349, python-ldap/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-ldap/repos/community-staging-x86_64/PKGBUILD (from rev 748349, python-ldap/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-11-10 04:00:38 UTC (rev 748352)
@@ -0,0 +1,31 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Maikel Wever <maikelwever at gmail.com>
+
+pkgname=python-ldap
+pkgver=3.3.1
+pkgrel=2
+pkgdesc="LDAP client API for Python"
+url="https://python-ldap.readthedocs.io/"
+arch=('x86_64')
+license=('MIT')
+depends=('python-pyasn1' 'python-pyasn1-modules' 'libldap')
+makedepends=('python-setuptools' 'python-coverage')
+checkdepends=('openldap' 'python-pyasn1' 'python-pyasn1-modules')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/python-ldap/python-ldap/archive/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('014681ee155a61fde50cf3f19a2f85c5c094439da695968f7fcdf75e95db84f9')
+
+build(){
+ cd "$pkgbase-$pkgbase-$pkgver"
+ python setup.py build
+}
+
+check(){
+ cd "$pkgbase-$pkgbase-$pkgver"
+ python -m coverage run --parallel setup.py test
+}
+
+package() {
+ cd "$pkgbase-$pkgbase-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -Dm 644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list