# Maintainer: Mark Wagie pkgname=python-clickgen _name=${pkgname#python-} pkgver=2.2.2 pkgrel=1 pkgdesc="X11 & Windows cursor building API" arch=('any') url="https://github.com/ful1e5/clickgen" license=('MIT') depends=( 'python-attrs' 'python-numpy' 'python-pillow' 'python-toml' 'python-yaml' ) makedepends=( 'python-build' 'python-installer' 'python-setuptools' 'python-wheel' ) source=("${_name}-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('678b4dfef7733efb409b307eaf0179a5dfc6af995df02e5ae85136067265dbbc') build() { cd "${_name}-$pkgver" python -m build --wheel --no-isolation } package() { cd "${_name}-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" }