From 8de2b02039b94a6fe9c65228ed238dda46937cb7 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Sun, 15 Nov 2020 21:37:17 +0000 Subject: python2-soupsieve: 1.9.6 --- abs/core/python_modules/python2-soupsieve/PKGBUILD | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 abs/core/python_modules/python2-soupsieve/PKGBUILD diff --git a/abs/core/python_modules/python2-soupsieve/PKGBUILD b/abs/core/python_modules/python2-soupsieve/PKGBUILD new file mode 100644 index 0000000..f552d97 --- /dev/null +++ b/abs/core/python_modules/python2-soupsieve/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Felix Yan + +pkgname=python2-soupsieve +pkgver=1.9.6 +pkgrel=2 +pkgdesc="A CSS4 selector implementation for Beautiful Soup" +url="https://github.com/facelessuser/soupsieve" +license=('MIT') +arch=('any') +depends=('python2-backports.functools_lru_cache') +makedepends=('python2-setuptools') +checkdepends=('python2-pytest' 'python2-beautifulsoup4' 'python2-html5lib' 'python2-lxml') +source=("https://github.com/facelessuser/soupsieve/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('44954cdedc16a51c794ebe6770caeb8f179167ad2f0a0478cb1efd5878d6cc49fffd6119125964b19184afa6d0d7dedadb81dee020a48c5128ccf56e36a78f61') + +build() { + cd soupsieve-$pkgver + python2 setup.py build +} + +check() { + cd soupsieve-$pkgver + pytest2 +} + +package() { + cd soupsieve-$pkgver + python2 setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md +} -- cgit v0.12