[arch-commits] Commit in python-ldap/repos (2 files)
Morten Linderud
foxboron at archlinux.org
Sat Mar 17 16:04:16 UTC 2018
Date: Saturday, March 17, 2018 @ 16:04:15
Author: foxboron
Revision: 308952
archrelease: copy trunk to community-x86_64
Added:
python-ldap/repos/community-x86_64/
python-ldap/repos/community-x86_64/PKGBUILD
(from rev 308951, python-ldap/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: python-ldap/repos/community-x86_64/PKGBUILD (from rev 308951, python-ldap/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2018-03-17 16:04:15 UTC (rev 308952)
@@ -0,0 +1,53 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Maikel Wever <maikelwever at gmail.com>
+
+pkgbase=python-ldap
+pkgname=(python-ldap python2-ldap)
+pkgver=3.0.0
+pkgrel=1
+pkgdesc="LDAP client API for Python"
+url="http://python-ldap.readthedocs.io/"
+arch=('x86_64')
+license=('MIT')
+makedepends=('python' 'python-setuptools'
+ 'python2' 'python2-setuptools'
+ 'python-coverage' 'python2-coverage')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/python-ldap/python-ldap/archive/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('c5ae7cb9575b59eb45df51dc77e755f2d584ee1ee8992b5a003dbb8732a922c3')
+
+prepare() {
+ cp -a ${pkgbase}-${pkgbase}-$pkgver{,-py2}
+}
+
+build(){
+ cd "$srcdir/$pkgbase-$pkgbase-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/$pkgbase-$pkgbase-$pkgver-py2"
+ python2 setup.py build
+}
+
+# TODO: Next release
+#check(){
+# cd "$srcdir/$pkgbase-$pkgbase-$pkgver"
+# python -m coverage run --parallel setup.py test
+#
+# cd "$srcdir/$pkgbase-$pkgbase-$pkgver-py2"
+# python2 -m coverage run --parallel setup.py test
+#}
+
+package_python2-ldap() {
+ depends=('python2' 'python2-pyasn1' 'python2-pyasn1-modules' 'libldap')
+ cd "$srcdir/$pkgbase-$pkgbase-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -Dm 644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+}
+
+package_python-ldap() {
+ depends=('python' 'python-pyasn1' 'python-pyasn1-modules' 'libldap')
+ 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