# Maintainer: Carl Smedstad # Contributor: Andrew Sun # Contributor: Alex Zose pkgname=crudini pkgver=0.9.5 pkgrel=2 pkgdesc="A utility for manipulating ini files" arch=(any) url="https://github.com/pixelb/crudini" license=(GPL-2.0-only) depends=( python python-iniparse ) makedepends=( python-build python-installer python-setuptools python-setuptools-scm python-wheel ) source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz") sha256sums=('b0492cb9ce126ce3c05ae7d8424c0fca5b26a788f593afe000150ba0c4b23cdb') _archive="$pkgname-$pkgver" build() { cd "$_archive" export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python -m build --wheel --no-isolation } check() { cd "$_archive" cd tests ./test.sh } package() { cd "$_archive" python -m installer --destdir="$pkgdir" dist/*.whl }