[arch-commits] Commit in python-wcag-contrast-ratio/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Fri Dec 31 05:52:14 UTC 2021


    Date: Friday, December 31, 2021 @ 05:52:13
  Author: foutrelis
Revision: 1089528

archrelease: copy trunk to community-any

Added:
  python-wcag-contrast-ratio/repos/community-any/
  python-wcag-contrast-ratio/repos/community-any/PKGBUILD
    (from rev 1089527, python-wcag-contrast-ratio/trunk/PKGBUILD)

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

Copied: python-wcag-contrast-ratio/repos/community-any/PKGBUILD (from rev 1089527, python-wcag-contrast-ratio/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-12-31 05:52:13 UTC (rev 1089528)
@@ -0,0 +1,33 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+_name=wcag-contrast-ratio
+pkgname=python-$_name
+pkgver=0.9
+pkgrel=1
+pkgdesc="Library for computing contrast ratios, as required by WCAG 2.0"
+arch=('any')
+url="https://github.com/gsnedders/wcag-contrast-ratio"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-hypothesis')
+source=(https://github.com/gsnedders/wcag-contrast-ratio/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('5263b7b2d0f5a8de2eb409421284947df6229b67bca0055fa10da38153835815')
+
+build() {
+  cd $_name-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_name-$pkgver
+  pytest test.py
+}
+
+package() {
+  cd $_name-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list