summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua I. Haase H. (xihh) <hahj87@gmail.com>2012-04-13 03:13:20 -0500
committerJoshua I. Haase H. (xihh) <hahj87@gmail.com>2012-04-13 03:13:20 -0500
commitaf6815d2cce56b0f41c8cb497167c9e8ecbf4999 (patch)
treee3181649f6496a63b7a5c653e8995dfe68e4cafa
parent329119159a478ffe3f6ca53a83a0fff4c13cfda3 (diff)
Commiting libre package python2-http-parser-0.7.3-1
-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/"
+}