summaryrefslogtreecommitdiff
path: root/~xihh/python2-http-parser/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to '~xihh/python2-http-parser/PKGBUILD')
-rw-r--r--~xihh/python2-http-parser/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/~xihh/python2-http-parser/PKGBUILD b/~xihh/python2-http-parser/PKGBUILD
new file mode 100644
index 000000000..697e30aa1
--- /dev/null
+++ b/~xihh/python2-http-parser/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
+pkgname='python2-http-parser'
+pkgver=0.7.3
+pkgrel=1
+pkgdesc="HTTP request/response parser for Python."
+arch=('i686' 'x86_64' 'mips64el')
+url="https://github.com/benoitc/http-parser"
+license=('custom:MIT')
+makedepends=('python2-distribute')
+options=(!emptydirs)
+source=("http://pypi.python.org/packages/source/h/http-parser/http-parser-${pkgver}.tar.gz")
+md5sums=('0adf47b79905e31c1f53414ab279987e')
+
+build() {
+ cd "$srcdir/http-parser-$pkgver"
+
+ python2 setup.py build
+
+}
+
+package() {
+
+ depends=('python2')
+
+ cd "$srcdir/http-parser-$pkgver"
+ python2 setup.py install --prefix=/usr --root=$pkgdir/ --optimize=1
+
+ install -m755 -d "${pkgdir}/usr/share/licenses/python2-python-http-parser"
+ install -m644 LICENSE "${pkgdir}/usr/share/licenses/python2-python-http-parser/"
+}