summaryrefslogtreecommitdiffstats
path: root/python-html-text/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'python-html-text/PKGBUILD')
-rw-r--r--python-html-text/PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/python-html-text/PKGBUILD b/python-html-text/PKGBUILD
new file mode 100644
index 0000000..5e38569
--- /dev/null
+++ b/python-html-text/PKGBUILD
@@ -0,0 +1,25 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2pkgname=python-html-text
3_pkgname=html-text
4pkgver=0.7.1
5pkgrel=1
6pkgdesc="Python library to extract text from HTML"
7arch=('any')
8url="https://github.com/zytedata/html-text"
9license=('MIT')
10depends=(python-lxml)
11makedepends=(python-build python-installer python-wheel python-hatchling)
12source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
13sha256sums=('10c841f375e5e31ef25d484c6e4bef931be2e58c2fb23cc0aec395999ab81865')
14
15build() {
16 cd "${_pkgname}-${pkgver}"
17 python -m build --wheel --no-isolation
18}
19
20package() {
21 cd "${_pkgname}-${pkgver}"
22 python -m installer --destdir="$pkgdir" dist/*.whl
23 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
24 install -Dm644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
25}