[arch-commits] Commit in python-hyperframe/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 16:09:38 UTC 2019
Date: Friday, October 25, 2019 @ 16:09:37
Author: foutrelis
Revision: 519403
archrelease: copy trunk to community-staging-any
Added:
python-hyperframe/repos/community-staging-any/
python-hyperframe/repos/community-staging-any/PKGBUILD
(from rev 519402, python-hyperframe/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-hyperframe/repos/community-staging-any/PKGBUILD (from rev 519402, python-hyperframe/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 16:09:37 UTC (rev 519403)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-hyperframe
+pkgname=('python-hyperframe' 'python2-hyperframe')
+pkgver=5.2.0
+pkgrel=2
+pkgdesc="HTTP/2 framing layer for Python"
+arch=('any')
+license=('MIT')
+url="https://hyper.rtfd.org"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/python-hyper/hyperframe/archive/v$pkgver.tar.gz")
+sha512sums=('e85dc5d3354f19edde87e826d6b95530817a2e5a080e00d44314856c053f877c4d0741363d014e8e85d7451af32e4c5698ef409d21ff631a510f1c9f468d0c4b')
+
+prepare() {
+ cp -a hyperframe-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/hyperframe-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/hyperframe-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/hyperframe-$pkgver
+ python setup.py pytest
+
+ cd "$srcdir"/hyperframe-$pkgver-py2
+ python2 setup.py pytest
+}
+
+package_python-hyperframe() {
+ depends=('python')
+
+ cd hyperframe-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-hyperframe() {
+ depends=('python2')
+
+ cd hyperframe-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list