Date: Tuesday, February 2, 2016 @ 15:24:29
  Author: fyan
Revision: 159971

archrelease: copy trunk to community-i686, community-x86_64

Added:
  python-http-parser/repos/community-i686/
  python-http-parser/repos/community-i686/PKGBUILD
    (from rev 159970, python-http-parser/trunk/PKGBUILD)
  python-http-parser/repos/community-x86_64/
  python-http-parser/repos/community-x86_64/PKGBUILD
    (from rev 159970, python-http-parser/trunk/PKGBUILD)

---------------------------+
 community-i686/PKGBUILD   |   53 ++++++++++++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD |   53 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 106 insertions(+)

Copied: python-http-parser/repos/community-i686/PKGBUILD (from rev 159970, 
python-http-parser/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD                             (rev 0)
+++ community-i686/PKGBUILD     2016-02-02 14:24:29 UTC (rev 159971)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgbase=python-http-parser
+pkgname=('python-http-parser' 'python2-http-parser')
+pkgver=0.8.3
+pkgrel=1
+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.5:$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-x86_64/PKGBUILD (from rev 159970, 
python-http-parser/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2016-02-02 14:24:29 UTC (rev 159971)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgbase=python-http-parser
+pkgname=('python-http-parser' 'python2-http-parser')
+pkgver=0.8.3
+pkgrel=1
+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.5:$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"
+}

Reply via email to