Christoph Reiter a0902f1e21 Use pypi PURLs instead of plain pypi names
This allows us to include a version and we already use PURL
for other things, so might as well remove the pypi special case.

Normalize the names, since that is required for PURLs.
2025-02-16 20:58:55 +01:00

42 lines
1021 B
Bash

# Maintainer: Alexandre Ferreira <contact@alexjorgef.com>
pkgname=ansible
pkgver=9.1.0
pkgrel=3
pkgdesc='Official assortment of Ansible collections'
arch=('any')
url='https://pypi.org/project/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'
'ansible-core'
)
makedepends=(
'python-setuptools'
'python-build'
'python-installer'
'python-setuptools'
)
source=("https://pypi.python.org/packages/source/a/ansible/ansible-${pkgver}.tar.gz")
sha512sums=('ec6d86b3d05e66053001720b6b7d7bd1dba8bd50917c913e1f08a63b0c94f76a5d69732c78e793d038622a0b8c652860290a89cee1dfb22491a81763923ef843')
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
}