pkgname=python-calver pkgver=2022.06.26 pkgrel=1 pkgdesc="Setuptools extension for CalVer package versions" arch=('x86_64') url="https://github.com/di/calver" license=('Apache') depends=('python') makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') source=(https://github.com/di/calver/archive/${pkgver}/${pkgname#*-}-${pkgver}.tar.gz) sha256sums=(0d3adaea2006c326ccd3959aae34836f497145c0f36b68f00f88d8b7ed02539b) build() { cd ${pkgname#*-}-${pkgver} python3 -m build --wheel --no-isolation } package() { cd ${pkgname#*-}-${pkgver} python3 -m installer --destdir="$pkgdir" dist/*.whl }