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

Evangelos Foutras foutrelis at archlinux.org
Fri Jul 13 19:51:31 UTC 2018


    Date: Friday, July 13, 2018 @ 19:51:30
  Author: foutrelis
Revision: 358803

archrelease: copy trunk to community-staging-any

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

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

Copied: python-tinycss2/repos/community-staging-any/PKGBUILD (from rev 358802, python-tinycss2/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-13 19:51:30 UTC (rev 358803)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-tinycss2
+pkgname=(python-tinycss2 python2-tinycss2)
+pkgver=0.6.1
+pkgrel=2
+pkgdesc="Low-level CSS parser for Python"
+url="https://pypi.python.org/pypi/tinycss2"
+license=('BSD')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-webencodings' 'python2-webencodings')
+checkdepends=('python-pytest-flake8' 'python2-pytest-flake8' 'python-pytest-cov'
+              'python2-pytest-cov' 'python-pytest-isort' 'python2-pytest-isort'
+              'python-pytest-runner' 'python2-pytest-runner')
+source=("https://pypi.io/packages/source/t/tinycss2/tinycss2-$pkgver.tar.gz")
+md5sums=('8dea5867b810e30a029c54e29a4dce4d')
+
+prepare() {
+  cp -a tinycss2-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/tinycss2-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/tinycss2-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/tinycss2-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/tinycss2-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-tinycss2() {
+  depends=('python-webencodings')
+
+  cd tinycss2-$pkgver
+  python3 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-tinycss2() {
+  depends=('python2-webencodings')
+
+  cd tinycss2-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list