diff options
author | Britney Fransen <brfransen@gmail.com> | 2020-11-15 21:28:27 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2020-11-15 21:28:27 (GMT) |
commit | f81dbe61f4526e7de2bb957e8ad960fd38730627 (patch) | |
tree | 8f7cca82053d05896be8b278321d4f2f047a02ef | |
parent | d9d9e8d1da6b97ae60b9682055de8b17289fc453 (diff) | |
download | linhes_pkgbuild-f81dbe61f4526e7de2bb957e8ad960fd38730627.zip linhes_pkgbuild-f81dbe61f4526e7de2bb957e8ad960fd38730627.tar.gz linhes_pkgbuild-f81dbe61f4526e7de2bb957e8ad960fd38730627.tar.bz2 |
python-soupsieve: 2.0.1
-rw-r--r-- | abs/core/python_modules/python-soupsieve/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-soupsieve/PKGBUILD b/abs/core/python_modules/python-soupsieve/PKGBUILD new file mode 100644 index 0000000..8b65574 --- /dev/null +++ b/abs/core/python_modules/python-soupsieve/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgname=python-soupsieve +pkgver=2.0.1 +pkgrel=3 +pkgdesc="A CSS4 selector implementation for Beautiful Soup" +url="https://github.com/facelessuser/soupsieve" +license=('MIT') +arch=('any') +depends=('python') +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-beautifulsoup4' 'python-html5lib' 'python-lxml') +source=("https://github.com/facelessuser/soupsieve/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('f4ef4deee81bb31952e1d3216250712f09b425e7a2253e15bd1b38cb74b680e421e7d086a8770737898f6b57867f07f2dd07b8a98108d05e338bce92b274b85f') + +build() { + cd soupsieve-$pkgver + python setup.py build +} + +check() { + cd soupsieve-$pkgver + pytest +} + +package() { + cd soupsieve-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md +} |