[arch-commits] Commit in python-soupsieve/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat May 25 18:31:46 UTC 2019


    Date: Saturday, May 25, 2019 @ 18:31:45
  Author: felixonmars
Revision: 470753

archrelease: copy trunk to community-any

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

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

Copied: python-soupsieve/repos/community-any/PKGBUILD (from rev 470752, python-soupsieve/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-05-25 18:31:45 UTC (rev 470753)
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-soupsieve
+pkgname=(python-soupsieve python2-soupsieve)
+pkgver=1.9.1
+pkgrel=2
+pkgdesc="A CSS4 selector implementation for Beautiful Soup"
+url="https://github.com/facelessuser/soupsieve"
+license=('MIT')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools' 'python2-backports.functools_lru_cache')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-beautifulsoup4'
+              'python2-beautifulsoup4' 'python-html5lib' 'python2-html5lib' 'python-lxml'
+              'python2-lxml')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/facelessuser/soupsieve/archive/$pkgver.tar.gz")
+sha512sums=('3c1d48a1590a88a5c39cb1881905465b4e3042d1ef14e20c451e741c886855f38f0ff4a1e9772795927f6c2b27889ef30e64bbc2b79f5c6221dc5e5beb155531')
+
+build() {
+  cd soupsieve-$pkgver
+  python setup.py build
+  python2 setup.py build
+}
+
+check() {
+  cd soupsieve-$pkgver
+  python setup.py pytest
+  python2 setup.py pytest
+}
+
+package_python-soupsieve() {
+  depends=('python')
+
+  cd soupsieve-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+}
+
+package_python2-soupsieve() {
+  depends=('python2-backports.functools_lru_cache')
+
+  cd soupsieve-$pkgver
+  python2 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