[arch-commits] Commit in python-service-identity/repos/extra-any (PKGBUILD PKGBUILD)
Date: Thursday, May 25, 2017 @ 08:50:42 Author: felixonmars Revision: 296561 archrelease: copy trunk to extra-any Added: python-service-identity/repos/extra-any/PKGBUILD (from rev 296560, python-service-identity/trunk/PKGBUILD) Deleted: python-service-identity/repos/extra-any/PKGBUILD --+ PKGBUILD | 110 ++--- 1 file changed, 55 insertions(+), 55 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2017-05-25 08:48:58 UTC (rev 296560) +++ PKGBUILD2017-05-25 08:50:42 UTC (rev 296561) @@ -1,55 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan - -pkgbase=python-service-identity -pkgname=('python-service-identity' 'python2-service-identity') -pkgver=16.0.0 -pkgrel=2 -pkgdesc="Service identity verification for pyOpenSSL" -arch=('any') -license=('MIT') -url="http://pypi.python.org/pypi/service_identity"; -makedepends=('python-pyopenssl' 'python2-pyopenssl' 'python-pyasn1' 'python2-pyasn1' - 'python-setuptools' 'python2-setuptools' 'python-pyasn1-modules' 'python2-pyasn1-modules' - 'python-attrs' 'python2-attrs' 'python-idna' 'python2-idna') -checkdepends=('python-pytest-runner' 'python2-pytest-runner') -source=("http://pypi.python.org/packages/source/s/service_identity/service_identity-$pkgver.tar.gz";) -md5sums=('d52392597b9c44a740abf322bfdb21e6') - -prepare() { - cp -a service_identity-$pkgver{,-py2} -} - -build() { - cd "$srcdir"/service_identity-$pkgver - python setup.py build - - cd "$srcdir"/service_identity-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/service_identity-$pkgver - python setup.py ptr - - cd "$srcdir"/service_identity-$pkgver-py2 - python2 setup.py ptr -} - -package_python-service-identity() { - depends=('python-pyopenssl' 'python-pyasn1' 'python-pyasn1-modules' 'python-attrs') - optdepends=('python-idna: for Internationalized Domain Names support') - - cd service_identity-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_python2-service-identity() { - depends=('python2-pyopenssl' 'python2-pyasn1' 'python2-pyasn1-modules' 'python2-attrs') - optdepends=('python2-idna: for Internationalized Domain Names support') - - cd service_identity-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} Copied: python-service-identity/repos/extra-any/PKGBUILD (from rev 296560, python-service-identity/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2017-05-25 08:50:42 UTC (rev 296561) @@ -0,0 +1,55 @@ +# $Id$ +# Maintainer: Felix Yan + +pkgbase=python-service-identity +pkgname=('python-service-identity' 'python2-service-identity') +pkgver=17.0.0 +pkgrel=1 +pkgdesc="Service identity verification for pyOpenSSL" +arch=('any') +license=('MIT') +url="http://pypi.python.org/pypi/service_identity"; +makedepends=('python-pyopenssl' 'python2-pyopenssl' 'python-pyasn1' 'python2-pyasn1' + 'python-setuptools' 'python2-setuptools' 'python-pyasn1-modules' 'python2-pyasn1-modules' + 'python-attrs' 'python2-attrs' 'python-idna' 'python2-idna') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/pyca/service_identity/archive/$pkgver.tar.gz";) +sha512sums=('3824cb473420a5ce6779fd35ff931189ed68286ad1f7f2936e3253a785cd76a77bbb95210a4a5fde1b1ef0c8d9c762b8e89ab44dce60ee43e34b2553ab78b5aa') + +prepare() { + cp -a service_identity-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/service_identity-$pkgver + python setup.py build + + cd "$srcdir"/service_identity-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/service_identity-$pkgver + python setup.py pytest + + cd "$srcdir"/service_identity-$pkgver-py2 + python2 setup.py pytest +} + +package_python-service-identity() { + depends=('python-pyopenssl' 'python-pyasn1' 'python-pyasn1-modules' 'python-attrs') + optdepends=('python-idna: for Internationalized Domain Names support') + + cd service_identity-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-service-identity() { + depends=('python2-pyopenssl' 'python2-pyasn1' 'python2-pyasn1-modules' 'python2-attrs') + optdepends=('python2-idna: for Internationalized Domain Names support') + + cd service_identity-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}
[arch-commits] Commit in python-service-identity/repos/extra-any (PKGBUILD PKGBUILD)
Date: Thursday, February 18, 2016 @ 13:51:04 Author: fyan Revision: 259956 archrelease: copy trunk to extra-any Added: python-service-identity/repos/extra-any/PKGBUILD (from rev 259955, python-service-identity/trunk/PKGBUILD) Deleted: python-service-identity/repos/extra-any/PKGBUILD --+ PKGBUILD | 114 + 1 file changed, 55 insertions(+), 59 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2016-02-18 12:49:49 UTC (rev 259955) +++ PKGBUILD2016-02-18 12:51:04 UTC (rev 259956) @@ -1,59 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan - -pkgbase=python-service-identity -pkgname=('python-service-identity' 'python2-service-identity') -pkgver=14.0.0 -pkgrel=3 -pkgdesc="Service identity verification for pyOpenSSL" -arch=('any') -license=('MIT') -url="http://pypi.python.org/pypi/service_identity"; -makedepends=('python-pyopenssl' 'python2-pyopenssl' 'python-pyasn1' 'python2-pyasn1' - 'python-setuptools' 'python2-setuptools' 'python-pyasn1-modules' 'python2-pyasn1-modules' - 'python-characteristic' 'python2-characteristic' 'python-pytest' 'python2-pytest') -checkdepends=('python-idna' 'python2-idna') -source=("http://pypi.python.org/packages/source/s/service_identity/service_identity-${pkgver}.tar.gz";) -md5sums=('cea0b0156d73b025ecef660fb51f0d9a') - -prepare() { - cp -a service_identity-${pkgver}{,-python2} -} - -build() { - # Build python 3 module - cd service_identity-${pkgver} - python3 setup.py build - - # Build python 2 module - cd ../service_identity-${pkgver}-python2 - python2 setup.py build -} - -check() { - # Check python3 module - cd "${srcdir}"/service_identity-${pkgver} - py.test - - # Check python2 module - cd "${srcdir}"/service_identity-${pkgver}-python2 - py.test2 -} - -package_python-service-identity() { - depends=('python' 'python-pyopenssl' 'python-pyasn1' 'python-pyasn1-modules' 'python-characteristic') - optdepends=('python-idna: for Internationalized Domain Names support') - - cd service_identity-${pkgver} - python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_python2-service-identity() { - depends=('python2' 'python2-pyopenssl' 'python2-pyasn1' 'python2-pyasn1-modules' 'python2-characteristic') - optdepends=('python2-idna: for Internationalized Domain Names support') - - cd service_identity-${pkgver}-python2 - python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} Copied: python-service-identity/repos/extra-any/PKGBUILD (from rev 259955, python-service-identity/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2016-02-18 12:51:04 UTC (rev 259956) @@ -0,0 +1,55 @@ +# $Id$ +# Maintainer: Felix Yan + +pkgbase=python-service-identity +pkgname=('python-service-identity' 'python2-service-identity') +pkgver=16.0.0 +pkgrel=1 +pkgdesc="Service identity verification for pyOpenSSL" +arch=('any') +license=('MIT') +url="http://pypi.python.org/pypi/service_identity"; +makedepends=('python-pyopenssl' 'python2-pyopenssl' 'python-pyasn1' 'python2-pyasn1' + 'python-setuptools' 'python2-setuptools' 'python-pyasn1-modules' 'python2-pyasn1-modules' + 'python-attrs' 'python2-attrs' 'python-idna' 'python2-idna') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("http://pypi.python.org/packages/source/s/service_identity/service_identity-$pkgver.tar.gz";) +md5sums=('d52392597b9c44a740abf322bfdb21e6') + +prepare() { + cp -a service_identity-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/service_identity-$pkgver + python setup.py build + + cd "$srcdir"/service_identity-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/service_identity-$pkgver + python setup.py ptr + + cd "$srcdir"/service_identity-$pkgver-py2 + python2 setup.py ptr +} + +package_python-service-identity() { + depends=('python-pyopenssl' 'python-pyasn1' 'python-pyasn1-modules' 'python-attrs') + optdepends=('python-idna: for Internationalized Domain Names support') + + cd service_identity-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-service-identity() { + depends=('python2-pyopenssl' 'python2-pyasn1' 'python2-pyasn1-modules' 'python2-attrs') + optdepends=('python2-idna: for Internationalized Domain Names support') + + cd service_identity-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}
[arch-commits] Commit in python-service-identity/repos/extra-any (PKGBUILD PKGBUILD)
Date: Friday, August 22, 2014 @ 16:44:55 Author: fyan Revision: 220541 archrelease: copy trunk to extra-any Added: python-service-identity/repos/extra-any/PKGBUILD (from rev 220540, python-service-identity/trunk/PKGBUILD) Deleted: python-service-identity/repos/extra-any/PKGBUILD --+ PKGBUILD | 115 +++-- 1 file changed, 59 insertions(+), 56 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2014-08-22 14:44:37 UTC (rev 220540) +++ PKGBUILD2014-08-22 14:44:55 UTC (rev 220541) @@ -1,56 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan - -pkgbase=python-service-identity -pkgname=('python-service-identity' 'python2-service-identity') -pkgver=14.0.0 -pkgrel=1 -pkgdesc="Service identity verification for pyOpenSSL" -arch=('any') -license=('MIT') -url="http://pypi.python.org/pypi/service_identity"; -makedepends=('python-pyopenssl' 'python2-pyopenssl' 'python-pyasn1' 'python2-pyasn1' - 'python-setuptools' 'python2-setuptools' 'python-pyasn1-modules' 'python2-pyasn1-modules' - 'python-characteristic' 'python2-characteristic' 'python-pytest' 'python2-pytest') -source=("http://pypi.python.org/packages/source/s/service_identity/service_identity-${pkgver}.tar.gz";) -md5sums=('cea0b0156d73b025ecef660fb51f0d9a') - -prepare() { - cp -a service_identity-${pkgver}{,-python2} -} - -build() { - # Build python 3 module - cd service_identity-${pkgver} - python3 setup.py build - - # Build python 2 module - cd ../service_identity-${pkgver}-python2 - python2 setup.py build -} - -check() { - # Check python3 module - cd "${srcdir}"/service_identity-${pkgver} - py.test - - # Check python2 module - cd "${srcdir}"/service_identity-${pkgver}-python2 - py.test2 -} - -package_python-service-identity() { - depends=('python' 'python-pyopenssl' 'python-pyasn1' 'python-pyasn1-modules' 'python-characteristic') - - cd service_identity-${pkgver} - python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_python2-service-identity() { - depends=('python2' 'python2-pyopenssl' 'python2-pyasn1' 'python2-pyasn1-modules' 'python2-characteristic') - - cd service_identity-${pkgver}-python2 - python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} Copied: python-service-identity/repos/extra-any/PKGBUILD (from rev 220540, python-service-identity/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2014-08-22 14:44:55 UTC (rev 220541) @@ -0,0 +1,59 @@ +# $Id$ +# Maintainer: Felix Yan + +pkgbase=python-service-identity +pkgname=('python-service-identity' 'python2-service-identity') +pkgver=14.0.0 +pkgrel=2 +pkgdesc="Service identity verification for pyOpenSSL" +arch=('any') +license=('MIT') +url="http://pypi.python.org/pypi/service_identity"; +makedepends=('python-pyopenssl' 'python2-pyopenssl' 'python-pyasn1' 'python2-pyasn1' + 'python-setuptools' 'python2-setuptools' 'python-pyasn1-modules' 'python2-pyasn1-modules' + 'python-characteristic' 'python2-characteristic' 'python-pytest' 'python2-pytest') +checkdepends=('python-idna' 'python2-idna') +source=("http://pypi.python.org/packages/source/s/service_identity/service_identity-${pkgver}.tar.gz";) +md5sums=('cea0b0156d73b025ecef660fb51f0d9a') + +prepare() { + cp -a service_identity-${pkgver}{,-python2} +} + +build() { + # Build python 3 module + cd service_identity-${pkgver} + python3 setup.py build + + # Build python 2 module + cd ../service_identity-${pkgver}-python2 + python2 setup.py build +} + +check() { + # Check python3 module + cd "${srcdir}"/service_identity-${pkgver} + py.test + + # Check python2 module + cd "${srcdir}"/service_identity-${pkgver}-python2 + py.test2 +} + +package_python-service-identity() { + depends=('python' 'python-pyopenssl' 'python-pyasn1' 'python-pyasn1-modules' 'python-characteristic') + optdepends=('python-idna: for Internationalized Domain Names support') + + cd service_identity-${pkgver} + python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-service-identity() { + depends=('python2' 'python2-pyopenssl' 'python2-pyasn1' 'python2-pyasn1-modules' 'python2-characteristic') + optdepends=('python2-idna: for Internationalized Domain Names support') + + cd service_identity-${pkgver}-python2 + python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}
[arch-commits] Commit in python-service-identity/repos/extra-any (PKGBUILD PKGBUILD)
Date: Friday, August 22, 2014 @ 16:33:39 Author: fyan Revision: 220539 archrelease: copy trunk to extra-any Added: python-service-identity/repos/extra-any/PKGBUILD (from rev 220538, python-service-identity/trunk/PKGBUILD) Deleted: python-service-identity/repos/extra-any/PKGBUILD --+ PKGBUILD | 112 ++--- 1 file changed, 56 insertions(+), 56 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2014-08-22 14:33:21 UTC (rev 220538) +++ PKGBUILD2014-08-22 14:33:39 UTC (rev 220539) @@ -1,56 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan - -pkgbase=python-service-identity -pkgname=('python-service-identity' 'python2-service-identity') -pkgver=1.0.0 -pkgrel=1 -pkgdesc="Service identity verification for pyOpenSSL" -arch=('any') -license=('MIT') -url="http://pypi.python.org/pypi/service_identity"; -makedepends=('python-pyopenssl' 'python2-pyopenssl' 'python-pyasn1' 'python2-pyasn1' - 'python-setuptools' 'python2-setuptools' 'python-pyasn1-modules' 'python2-pyasn1-modules' - 'python-characteristic' 'python2-characteristic') -source=("http://pypi.python.org/packages/source/s/service_identity/service_identity-${pkgver}.tar.gz";) -md5sums=('437c380ce0fe85a0fbc4780a86b3ee58') - -prepare() { - cp -a service_identity-${pkgver}{,-python2} -} - -build() { - # Build python 3 module - cd service_identity-${pkgver} - python3 setup.py build - - # Build python 2 module - cd ../service_identity-${pkgver}-python2 - python2 setup.py build -} - -check() { - # Check python3 module - cd "${srcdir}"/service_identity-${pkgver} - python3 setup.py test - - # Check python2 module - cd "${srcdir}"/service_identity-${pkgver}-python2 - python2 setup.py test -} - -package_python-service-identity() { - depends=('python' 'python-pyopenssl' 'python-pyasn1' 'python-pyasn1-modules' 'python-characteristic') - - cd service_identity-${pkgver} - python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_python2-service-identity() { - depends=('python2' 'python2-pyopenssl' 'python2-pyasn1' 'python2-pyasn1-modules' 'python2-characteristic') - - cd service_identity-${pkgver}-python2 - python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} Copied: python-service-identity/repos/extra-any/PKGBUILD (from rev 220538, python-service-identity/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2014-08-22 14:33:39 UTC (rev 220539) @@ -0,0 +1,56 @@ +# $Id$ +# Maintainer: Felix Yan + +pkgbase=python-service-identity +pkgname=('python-service-identity' 'python2-service-identity') +pkgver=14.0.0 +pkgrel=1 +pkgdesc="Service identity verification for pyOpenSSL" +arch=('any') +license=('MIT') +url="http://pypi.python.org/pypi/service_identity"; +makedepends=('python-pyopenssl' 'python2-pyopenssl' 'python-pyasn1' 'python2-pyasn1' + 'python-setuptools' 'python2-setuptools' 'python-pyasn1-modules' 'python2-pyasn1-modules' + 'python-characteristic' 'python2-characteristic' 'python-pytest' 'python2-pytest') +source=("http://pypi.python.org/packages/source/s/service_identity/service_identity-${pkgver}.tar.gz";) +md5sums=('cea0b0156d73b025ecef660fb51f0d9a') + +prepare() { + cp -a service_identity-${pkgver}{,-python2} +} + +build() { + # Build python 3 module + cd service_identity-${pkgver} + python3 setup.py build + + # Build python 2 module + cd ../service_identity-${pkgver}-python2 + python2 setup.py build +} + +check() { + # Check python3 module + cd "${srcdir}"/service_identity-${pkgver} + py.test + + # Check python2 module + cd "${srcdir}"/service_identity-${pkgver}-python2 + py.test2 +} + +package_python-service-identity() { + depends=('python' 'python-pyopenssl' 'python-pyasn1' 'python-pyasn1-modules' 'python-characteristic') + + cd service_identity-${pkgver} + python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-service-identity() { + depends=('python2' 'python2-pyopenssl' 'python2-pyasn1' 'python2-pyasn1-modules' 'python2-characteristic') + + cd service_identity-${pkgver}-python2 + python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}
[arch-commits] Commit in python-service-identity/repos/extra-any (PKGBUILD PKGBUILD)
Date: Monday, June 16, 2014 @ 03:16:50 Author: fyan Revision: 215181 archrelease: copy trunk to extra-any Added: python-service-identity/repos/extra-any/PKGBUILD (from rev 215180, python-service-identity/trunk/PKGBUILD) Deleted: python-service-identity/repos/extra-any/PKGBUILD --+ PKGBUILD | 111 ++--- 1 file changed, 56 insertions(+), 55 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2014-06-16 01:16:00 UTC (rev 215180) +++ PKGBUILD2014-06-16 01:16:50 UTC (rev 215181) @@ -1,55 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan - -pkgbase=python-service-identity -pkgname=('python-service-identity' 'python2-service-identity') -pkgver=0.2 -pkgrel=1 -pkgdesc="Service identity verification for pyOpenSSL" -arch=('any') -license=('MIT') -url="http://pypi.python.org/pypi/service_identity"; -makedepends=('python-pyopenssl' 'python2-pyopenssl' 'python-pyasn1' 'python2-pyasn1' - 'python-setuptools' 'python2-setuptools' 'python-pyasn1-modules' 'python2-pyasn1-modules') -source=("http://pypi.python.org/packages/source/s/service_identity/service_identity-${pkgver}.tar.gz";) -md5sums=('5fd2b5103291e71b3afe23aaeefb89f2') - -prepare() { - cp -a service_identity-${pkgver}{,-python2} -} - -build() { - # Build python 3 module - cd service_identity-${pkgver} - python3 setup.py build - - # Build python 2 module - cd ../service_identity-${pkgver}-python2 - python2 setup.py build -} - -check() { - # Check python3 module - cd "${srcdir}"/service_identity-${pkgver} - python3 setup.py test - - # Check python2 module - cd "${srcdir}"/service_identity-${pkgver}-python2 - python2 setup.py test -} - -package_python-service-identity() { - depends=('python' 'python-pyopenssl' 'python-pyasn1' 'python-pyasn1-modules') - - cd service_identity-${pkgver} - python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} - -package_python2-service-identity() { - depends=('python2' 'python2-pyopenssl' 'python2-pyasn1' 'python2-pyasn1-modules') - - cd service_identity-${pkgver}-python2 - python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} Copied: python-service-identity/repos/extra-any/PKGBUILD (from rev 215180, python-service-identity/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2014-06-16 01:16:50 UTC (rev 215181) @@ -0,0 +1,56 @@ +# $Id$ +# Maintainer: Felix Yan + +pkgbase=python-service-identity +pkgname=('python-service-identity' 'python2-service-identity') +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Service identity verification for pyOpenSSL" +arch=('any') +license=('MIT') +url="http://pypi.python.org/pypi/service_identity"; +makedepends=('python-pyopenssl' 'python2-pyopenssl' 'python-pyasn1' 'python2-pyasn1' + 'python-setuptools' 'python2-setuptools' 'python-pyasn1-modules' 'python2-pyasn1-modules' + 'python-characteristic' 'python2-characteristic') +source=("http://pypi.python.org/packages/source/s/service_identity/service_identity-${pkgver}.tar.gz";) +md5sums=('437c380ce0fe85a0fbc4780a86b3ee58') + +prepare() { + cp -a service_identity-${pkgver}{,-python2} +} + +build() { + # Build python 3 module + cd service_identity-${pkgver} + python3 setup.py build + + # Build python 2 module + cd ../service_identity-${pkgver}-python2 + python2 setup.py build +} + +check() { + # Check python3 module + cd "${srcdir}"/service_identity-${pkgver} + python3 setup.py test + + # Check python2 module + cd "${srcdir}"/service_identity-${pkgver}-python2 + python2 setup.py test +} + +package_python-service-identity() { + depends=('python' 'python-pyopenssl' 'python-pyasn1' 'python-pyasn1-modules' 'python-characteristic') + + cd service_identity-${pkgver} + python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-service-identity() { + depends=('python2' 'python2-pyopenssl' 'python2-pyasn1' 'python2-pyasn1-modules' 'python2-characteristic') + + cd service_identity-${pkgver}-python2 + python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}