summaryrefslogtreecommitdiffstats
path: root/python-html-text/PKGBUILD
blob: 1cb045267cfeb41ba6068a514ed0d7b82e797fb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Yigit Sever <yigit at yigitsever dot com>
pkgname=python-html-text
_pkgname=html-text
pkgver=0.6.2
pkgrel=1
pkgdesc="Python library to extract text from HTML"
arch=('any')
url="https://github.com/zytedata/html-text"
license=('MIT')
depends=(python-lxml)
makedepends=(python-build python-installer python-wheel)
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha256sums=('2bda73192e3009bacb626c8feacc9ab5f0685947eb5847e181fb1d330410bcc3')

build() {
  cd "${_pkgname}-${pkgver}"
  python -m build --wheel --no-isolation
}

package() {
	cd "${_pkgname}-${pkgver}"
  python -m installer --destdir="$pkgdir" dist/*.whl
}