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

Felix Yan felixonmars at archlinux.org
Wed Jan 23 06:18:15 UTC 2019


    Date: Wednesday, January 23, 2019 @ 06:18:15
  Author: felixonmars
Revision: 427128

archrelease: copy trunk to community-x86_64

Added:
  python-soupsieve/repos/community-x86_64/
  python-soupsieve/repos/community-x86_64/PKGBUILD
    (from rev 427126, python-soupsieve/trunk/PKGBUILD)

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

Copied: python-soupsieve/repos/community-x86_64/PKGBUILD (from rev 427126, python-soupsieve/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2019-01-23 06:18:15 UTC (rev 427128)
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-soupsieve
+pkgname=(python-soupsieve python2-soupsieve)
+pkgver=1.7.2
+pkgrel=1
+pkgdesc="A CSS4 selector implementation for Beautiful Soup"
+url="https://github.com/facelessuser/soupsieve"
+license=('MIT')
+arch=('x86_64')
+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=('96da48c74b1a639afa40022dba50728ae893602097ed64427af094311bb1ec4b2aeeb9a9d57509defdb9c05a238b6caa6abafe70925833036064bd0d73c264b8')
+
+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