[arch-commits] Commit in python-http-parser/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Sun Dec 25 02:50:21 UTC 2016
Date: Sunday, December 25, 2016 @ 02:50:19
Author: felixonmars
Revision: 201804
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
python-http-parser/repos/community-staging-i686/
python-http-parser/repos/community-staging-i686/PKGBUILD
(from rev 201801, python-http-parser/trunk/PKGBUILD)
python-http-parser/repos/community-staging-x86_64/
python-http-parser/repos/community-staging-x86_64/PKGBUILD
(from rev 201802, python-http-parser/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 53 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 53 ++++++++++++++++++++++++++++++++++++
2 files changed, 106 insertions(+)
Copied: python-http-parser/repos/community-staging-i686/PKGBUILD (from rev 201801, python-http-parser/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2016-12-25 02:50:19 UTC (rev 201804)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-http-parser
+pkgname=('python-http-parser' 'python2-http-parser')
+pkgver=0.8.3
+pkgrel=2
+pkgdesc="HTTP request/response parser for Python"
+arch=('i686' 'x86_64')
+license=('MIT')
+url="http://github.com/benoitc/http-parser"
+makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'git')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("git+https://github.com/benoitc/http-parser.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ cp -a http-parser{,-py2}
+}
+
+build() {
+ cd "$srcdir/http-parser"
+ python setup.py build
+
+ cd "$srcdir/http-parser-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/http-parser"
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.6:$PYTHONPATH" \
+ py.test testing/
+
+ cd "$srcdir/http-parser-py2"
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" \
+ py.test2 testing/
+}
+
+package_python-http-parser() {
+ depends=('python')
+
+ cd http-parser
+ python setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-http-parser() {
+ depends=('python2')
+
+ cd http-parser-py2
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
Copied: python-http-parser/repos/community-staging-x86_64/PKGBUILD (from rev 201802, python-http-parser/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2016-12-25 02:50:19 UTC (rev 201804)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-http-parser
+pkgname=('python-http-parser' 'python2-http-parser')
+pkgver=0.8.3
+pkgrel=2
+pkgdesc="HTTP request/response parser for Python"
+arch=('i686' 'x86_64')
+license=('MIT')
+url="http://github.com/benoitc/http-parser"
+makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'git')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("git+https://github.com/benoitc/http-parser.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ cp -a http-parser{,-py2}
+}
+
+build() {
+ cd "$srcdir/http-parser"
+ python setup.py build
+
+ cd "$srcdir/http-parser-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/http-parser"
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.6:$PYTHONPATH" \
+ py.test testing/
+
+ cd "$srcdir/http-parser-py2"
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" \
+ py.test2 testing/
+}
+
+package_python-http-parser() {
+ depends=('python')
+
+ cd http-parser
+ python setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-http-parser() {
+ depends=('python2')
+
+ cd http-parser-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