summaryrefslogtreecommitdiff
path: root/pcr/python2-webob/PKGBUILD
blob: 8dd0df386f1bb9cdb450bd19c93c5b9809bab671 (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
31
32
33
34
# Contributor: Aaron DeVore <aaron.devore@gmail.com>
# Contributor: Cilyan Olowen <gaknar@gmail.com>
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO>

pkgname='python2-webob'
pkgver='1.2.3'
pkgrel='1'
pkgdesc="WebOb provides objects for HTTP requests and responses."
arch=('any')
url="http://webob.org/"
license=('MIT')
depends=('python2')
makedepends=('python2-distribute')
optdepends=('python-webob-docs: documentation')
changelog='Changelog'
source=("http://pypi.python.org/packages/source/W/WebOb/WebOb-${pkgver}.tar.gz")

build() {
  cd "$srcdir/WebOb-${pkgver}"
  python2 setup.py build
}

package() {
  cd "$srcdir/WebOb-${pkgver}"
  python2 setup.py install "--root=$pkgdir" --optimize=1
  install -D -m644 "docs/license.txt" \
                   "$pkgdir/usr/share/licenses/$pkgname/license.txt"
}

check() {
  cd "$srcdir/WebOb-${pkgver}"
  python2 setup.py test
}