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

Felix Yan felixonmars at archlinux.org
Tue Dec 26 01:09:34 UTC 2017


    Date: Tuesday, December 26, 2017 @ 01:09:33
  Author: felixonmars
Revision: 276075

archrelease: copy trunk to community-any

Added:
  python-webcolors/repos/community-any/
  python-webcolors/repos/community-any/PKGBUILD
    (from rev 276074, python-webcolors/trunk/PKGBUILD)

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

Copied: python-webcolors/repos/community-any/PKGBUILD (from rev 276074, python-webcolors/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-12-26 01:09:33 UTC (rev 276075)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-webcolors
+pkgname=(python-webcolors python2-webcolors)
+pkgver=1.7
+pkgrel=1
+pkgdesc="A library for working with color names and color value formats defined by the HTML and CSS specifications for use in documents on the Web"
+url="https://github.com/ubernostrum/webcolors"
+license=('BSD')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("https://pypi.io/packages/source/w/webcolors/webcolors-$pkgver.tar.gz")
+sha512sums=('0541b0cd4871f36adb09bcdf345797916ef27364e83ac0e87f5b41e891801c5f4354dcf8ca7dd3e10407d6c867cdfc0aa59dacc508a4fec0407e78a0b435697e')
+
+prepare() {
+  cp -a webcolors-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/webcolors-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/webcolors-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/webcolors-$pkgver
+  py.test
+
+  cd "$srcdir"/webcolors-$pkgver-py2
+  py.test2
+}
+
+package_python-webcolors() {
+  depends=('python')
+
+  cd webcolors-$pkgver
+  python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-webcolors() {
+  depends=('python2')
+
+  cd webcolors-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list