Date: Wednesday, April 5, 2023 @ 17:51:05
  Author: felixonmars
Revision: 1437842

archrelease: copy trunk to community-staging-any

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

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

Copied: python-wcag-contrast-ratio/repos/community-staging-any/PKGBUILD (from 
rev 1437841, python-wcag-contrast-ratio/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-05 17:51:05 UTC (rev 1437842)
@@ -0,0 +1,33 @@
+# Maintainer: Evangelos Foutras <[email protected]>
+
+_name=wcag-contrast-ratio
+pkgname=python-$_name
+pkgver=0.9
+pkgrel=3
+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:

Reply via email to