| author | Balló György
<bgyorgy@archlinux.org> 2024-08-01 10:01:52 UTC |
| committer | Balló György
<bgyorgy@archlinux.org> 2024-08-01 10:01:52 UTC |
| parent | f1d1b18ebb6128d112350f4d7eba2b64852e14b7 |
| .SRCINFO | +8 | -5 |
| PKGBUILD | +21 | -9 |
diff --git a/.SRCINFO b/.SRCINFO index 5709441..9fabd35 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,18 +1,21 @@ pkgbase = python-readability-lxml pkgdesc = Fast html to text parser (article readability tool) python library pkgver = 0.8.1 - pkgrel = 8 + pkgrel = 9 url = https://github.com/buriy/python-readability arch = any - license = Apache + license = Apache-2.0 + makedepends = git makedepends = python-build makedepends = python-installer makedepends = python-setuptools makedepends = python-wheel + depends = python depends = python-chardet - depends = python-lxml depends = python-cssselect - source = https://github.com/buriy/python-readability/archive/v0.8.1/python-readability-lxml-0.8.1.tar.gz - sha256sums = e6650d608174fde8e9feb07cb86c16f5d42e09e0dd446093d1b529d55f2b939a + depends = python-lxml + depends = python-lxml-html-clean + source = git+https://github.com/buriy/python-readability.git#tag=v0.8.1 + b2sums = a1b05013ff0c7103e2d49ed748b338d38d1e7f5112e8f79442df87c56f38053fe79108149b9d4798ffba84df1275e38ecde515a21096b71cc6d2a1f724a195b2 pkgname = python-readability-lxml diff --git a/PKGBUILD b/PKGBUILD index e6e8fe5..4255e27 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,22 +4,34 @@ _pkgname=python-readability pkgname=python-readability-lxml pkgver=0.8.1 -pkgrel=8 +pkgrel=9 pkgdesc='Fast html to text parser (article readability tool) python library' -arch=('any') +arch=(any) url='https://github.com/buriy/python-readability' -license=('Apache') -depends=('python-chardet' 'python-lxml' 'python-cssselect') -makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') -source=("https://github.com/buriy/$_pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz") -sha256sums=('e6650d608174fde8e9feb07cb86c16f5d42e09e0dd446093d1b529d55f2b939a') +license=(Apache-2.0) +depends=( + python + python-chardet + python-cssselect + python-lxml + python-lxml-html-clean +) +makedepends=( + git + python-build + python-installer + python-setuptools + python-wheel +) +source=("git+https://github.com/buriy/python-readability.git#tag=v$pkgver") +b2sums=(a1b05013ff0c7103e2d49ed748b338d38d1e7f5112e8f79442df87c56f38053fe79108149b9d4798ffba84df1275e38ecde515a21096b71cc6d2a1f724a195b2) build() { - cd $_pkgname-$pkgver + cd $_pkgname python -m build --wheel --no-isolation } package() { - cd $_pkgname-$pkgver + cd $_pkgname python -m installer --destdir="$pkgdir" dist/*.whl }