30 lines
944 B
Bash
30 lines
944 B
Bash
|
# 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 <future_linux@163.com>
|
||
|
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
|
||
|
}
|