commit dfd53aa9aa5253472e899f8e6ef33a12feaa37a4 Author: xhaa123 Date: Mon Nov 4 11:27:46 2024 +0800 python-wcag-contrast-ratio 0.9-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..4c643d3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=python-wcag-contrast-ratio +pkgver=0.9 +pkgrel=1 +pkgdesc="Library for computing contrast ratios, as required by WCAG 2.0" +arch=('x86_64') +url="https://github.com/gsnedders/wcag-contrast-ratio" +license=('MIT') +depends=('python') +makedepends=('python-setuptools') +source=(https://github.com/gsnedders/wcag-contrast-ratio/archive/${pkgver}/${pkgname#*-}-${pkgver}.tar.gz) +sha256sums=(5263b7b2d0f5a8de2eb409421284947df6229b67bca0055fa10da38153835815) + +build() { + cd ${pkgname#*-}-${pkgver} + + python3 setup.py build +} + +package() { + cd ${pkgname#*-}-${pkgver} + + python3 setup.py install --root=${pkgdir} --optimize=1 --skip-build +}