Date: Friday, December 31, 2021 @ 05:51:47 Author: foutrelis Revision: 1089525
Add wcag-contrast-ratio for pygments Added: python-wcag-contrast-ratio/ python-wcag-contrast-ratio/repos/ python-wcag-contrast-ratio/trunk/ python-wcag-contrast-ratio/trunk/PKGBUILD ----------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) Added: python-wcag-contrast-ratio/trunk/PKGBUILD =================================================================== --- python-wcag-contrast-ratio/trunk/PKGBUILD (rev 0) +++ python-wcag-contrast-ratio/trunk/PKGBUILD 2021-12-31 05:51:47 UTC (rev 1089525) @@ -0,0 +1,33 @@ +# Maintainer: Evangelos Foutras <[email protected]> + +_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:
