[arch-commits] Commit in python-characteristic/repos (extra-any extra-any/PKGBUILD)
Felix Yan
fyan at nymeria.archlinux.org
Mon Jun 16 01:15:46 UTC 2014
Date: Monday, June 16, 2014 @ 03:15:46
Author: fyan
Revision: 215179
archrelease: copy trunk to extra-any
Added:
python-characteristic/repos/extra-any/
python-characteristic/repos/extra-any/PKGBUILD
(from rev 215178, python-characteristic/trunk/PKGBUILD)
----------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
Copied: python-characteristic/repos/extra-any/PKGBUILD (from rev 215178, python-characteristic/trunk/PKGBUILD)
===================================================================
--- extra-any/PKGBUILD (rev 0)
+++ extra-any/PKGBUILD 2014-06-16 01:15:46 UTC (rev 215179)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+
+pkgbase=python-characteristic
+pkgname=('python-characteristic' 'python2-characteristic')
+pkgver=0.1.0
+pkgrel=1
+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=('b4eba58e38133e5e90e8c679c116aa62')
+
+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}
+ py.test test_characteristic.py
+
+ # Check python2 module
+ cd "${srcdir}"/characteristic-${pkgver}-python2
+ py.test2 test_characteristic.py
+}
+
+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