# Maintainer: Alexandre Ferreira pkgname=ansible # Note: When packaging a new version of ansible, bump version of ansible-core in # depends, if required. pkgver=13.3.0 pkgrel=1 pkgdesc='Official assortment of Ansible collections' arch=('any') url='https://pypi.org/project/ansible/' msys2_repository_url='https://github.com/ansible/ansible' msys2_references=( "cpe: cpe:/a:ansible:ansible" "cpe: cpe:/a:redhat:ansible" "cpe: cpe:/a:redhat:ansible_engine" "purl: pkg:pypi/ansible" ) license=('spdx:GPL-3.0-or-later') depends=( 'python' # Bump the version of ansible-core at least whenever a new major version of # ansible is packaged / released. Check the ansible release notes to get the # corresponding version of ansible-core. It usually has a statement like # "Ansible x.y.z depends on ansible-core a.b.c" in it. 'ansible-core>=2.20.2' ) makedepends=( 'python-setuptools' 'python-build' 'python-installer' 'python-setuptools' ) source=("https://pypi.python.org/packages/source/a/ansible/ansible-${pkgver}.tar.gz") sha512sums=('73a28a0925564fe6eb2b2ce9175e5efb29c170e544b460cbda00baf5aaa2ea42e72460fef73e607ea3972de915fd91c1d37b858fb95ece5fee202d171431e7c3') build() { cd ansible-${pkgver} python -m build --wheel --skip-dependency-check --no-isolation } package() { cd ansible-${pkgver} python -m installer --destdir="${pkgdir}" dist/*.whl install -Dm644 COPYING "${pkgdir}"/usr/share/doc/${pkgname}/COPYING }