summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5271001722b2a4ed02ae6ea4802e2e117cbbd38 (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
35
36
37
# Maintainer: Francesco Minnocci <ascoli dot minnocci at gmail dot com>
# Contributor: Aetf <aetf at unlimitedcodeworks dot xyz>
# Contributor: Glennie Vignarajah <glennie@glennie.fr>

pkgname=python-robobrowser
pkgver=0.5.3
pkgrel=4
pkgdesc="RoboBrowser is a simple, Pythonic library for browsing the web without a standalone web browser."
arch=('any')
url="https://github.com/jmcarp/robobrowser"
license=('MIT')
depends=('python' 'python-requests' 'python-beautifulsoup4' 'python-werkzeug' 'python-six')
makedepends=('python-setuptools')
# checkdepends=('python-nose' 'python-mock' 'python-coverage' 'python-coveralls'  'python-docutils' 'python-sphinx')
source=("https://pypi.python.org/packages/source/r/robobrowser/robobrowser-$pkgver.tar.gz")
md5sums=('333ad401f4a0b320fa873c78bc5fb64d')


prepare() {
  cd "$srcdir/robobrowser-$pkgver"
  python setup.py build --quiet
}

# check() {
  # cd "$srcdir/robobrowser-$pkgver"

  # nosetests ## TODO: Re-add tests when this gets fixed: https://github.com/jmcarp/robobrowser/issues/96
# }

package() {
  cd "$srcdir/robobrowser-$pkgver"

  export PYTHONHASHSEED=0
  python setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 README.rst "$pkgdir/usr/share/doc/$pkgname/README.rst"
}
# vim:set ts=2 sw=2 et: