[arch-commits] Commit in python-characteristic/repos (2 files)

Felix Yan fyan at archlinux.org
Sat Sep 19 15:16:37 UTC 2015


    Date: Saturday, September 19, 2015 @ 17:16:37
  Author: fyan
Revision: 246640

archrelease: copy trunk to staging-any

Added:
  python-characteristic/repos/staging-any/
  python-characteristic/repos/staging-any/PKGBUILD
    (from rev 246639, python-characteristic/trunk/PKGBUILD)

----------+
 PKGBUILD |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

Copied: python-characteristic/repos/staging-any/PKGBUILD (from rev 246639, python-characteristic/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2015-09-19 15:16:37 UTC (rev 246640)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-characteristic
+pkgname=('python-characteristic' 'python2-characteristic')
+pkgver=14.3.0
+pkgrel=2
+pkgdesc="Service identity verification for pyOpenSSL"
+arch=('any')
+license=('MIT')
+url="http://pypi.python.org/pypi/characteristic"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("http://pypi.python.org/packages/source/c/characteristic/characteristic-${pkgver}.tar.gz")
+md5sums=('b249368dd021fde1c06b4802867c0913')
+
+prepare() {
+   cp -a characteristic-${pkgver}{,-python2}
+}
+
+build() {
+   # Build python 3 module
+   cd characteristic-${pkgver}
+   python3 setup.py build
+ 
+   # Build python 2 module
+   cd ../characteristic-${pkgver}-python2
+   python2 setup.py build
+}
+
+check() {
+   # Check python3 module
+   cd "${srcdir}"/characteristic-${pkgver}
+   python -Walways setup.py test
+
+   # Check python2 module
+   cd "${srcdir}"/characteristic-${pkgver}-python2
+   python2 -Walways setup.py test
+}
+ 
+package_python-characteristic() {
+   depends=('python')
+ 
+   cd characteristic-${pkgver}
+   python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+ 
+package_python2-characteristic() {
+   depends=('python2')
+ 
+   cd characteristic-${pkgver}-python2
+   python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list