[arch-commits] Commit in python-characteristic/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Thu Feb 18 14:29:58 UTC 2016
Date: Thursday, February 18, 2016 @ 15:29:57
Author: fyan
Revision: 162360
upgpkg: python-characteristic 14.3.0-3
rebuild for moving from [extra] to [community].
Modified:
python-characteristic/trunk/PKGBUILD
----------+
PKGBUILD | 44 ++++++++++++++++++++------------------------
1 file changed, 20 insertions(+), 24 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-02-18 14:17:37 UTC (rev 162359)
+++ PKGBUILD 2016-02-18 14:29:57 UTC (rev 162360)
@@ -4,52 +4,48 @@
pkgbase=python-characteristic
pkgname=('python-characteristic' 'python2-characteristic')
pkgver=14.3.0
-pkgrel=2
+pkgrel=3
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")
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("http://pypi.python.org/packages/source/c/characteristic/characteristic-$pkgver.tar.gz")
md5sums=('b249368dd021fde1c06b4802867c0913')
prepare() {
- cp -a characteristic-${pkgver}{,-python2}
+ cp -a characteristic-$pkgver{,-py2}
}
build() {
- # Build python 3 module
- cd characteristic-${pkgver}
- python3 setup.py build
+ cd "$srcdir"/characteristic-$pkgver
+ python setup.py build
- # Build python 2 module
- cd ../characteristic-${pkgver}-python2
- python2 setup.py build
+ cd "$srcdir"/characteristic-$pkgver-py2
+ python2 setup.py build
}
check() {
- # Check python3 module
- cd "${srcdir}"/characteristic-${pkgver}
- python -Walways setup.py test
+ cd "$srcdir"/characteristic-$pkgver
+ python setup.py ptr
- # Check python2 module
- cd "${srcdir}"/characteristic-${pkgver}-python2
- python2 -Walways setup.py test
+ cd "$srcdir"/characteristic-$pkgver-py2
+ python2 setup.py ptr
}
package_python-characteristic() {
- depends=('python')
+ depends=('python')
- cd characteristic-${pkgver}
- python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ cd characteristic-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_python2-characteristic() {
- depends=('python2')
+ 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"
+ cd characteristic-$pkgver-py2
+ 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