summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 493735ca3e904cffc5a2922acceb384e247f4902 (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
# Maintainer: robertfoster
# Contributor: Ista Zahn <istazahn[at]gmail[dot]com>

pkgbase=python-requests-html
_pyname=requests-html
pkgname=('python-requests-html')
depends=('python' 'python-requests' 'python-pyquery' 'python-fake-useragent' 
'python-parse' 'python-beautifulsoup4' 'python-w3lib' 'python-pyppeteer')
makedepends=('python-setuptools')
pkgver=0.10.0
pkgrel=1
pkgdesc="HTML Parsing for Humans"
arch=('any')
url="http://html.python-requests.org/"
license=('MIT')
source=("${_pyname}-${pkgver}.tar.gz::https://github.com/kennethreitz/${_pyname}/archive/v${pkgver}.tar.gz")

package() {
  cd "${srcdir}/${_pyname}-${pkgver}"
  sed -i "s|bs4|beautifulsoup4|g" setup.py
  python setup.py install -O1 --root="${pkgdir}"
  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
}

md5sums=('1f7c9979d12e76da98e53cfb0b63027e')