blob: 697e30aa1872cc244f15bb596b5a33a3476eaa05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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/"
}
|