[arch-commits] Commit in python-soupsieve/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:34:45 UTC 2020


    Date: Monday, November 9, 2020 @ 15:34:44
  Author: felixonmars
Revision: 746990

archrelease: copy trunk to community-staging-any

Added:
  python-soupsieve/repos/community-staging-any/
  python-soupsieve/repos/community-staging-any/PKGBUILD
    (from rev 746989, python-soupsieve/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: python-soupsieve/repos/community-staging-any/PKGBUILD (from rev 746989, python-soupsieve/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:34:44 UTC (rev 746990)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-soupsieve
+pkgver=2.0.1
+pkgrel=2
+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
+}



More information about the arch-commits mailing list