Date: Tuesday, March 28, 2023 @ 09:27:26
Author: jelle
Revision: 1429902
archrelease: copy trunk to community-testing-any
Added:
ansible-core/repos/community-testing-any/
ansible-core/repos/community-testing-any/PKGBUILD
(from rev 1429901, ansible-core/trunk/PKGBUILD)
----------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
Copied: ansible-core/repos/community-testing-any/PKGBUILD (from rev 1429901,
ansible-core/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2023-03-28 09:27:26 UTC (rev 1429902)
@@ -0,0 +1,60 @@
+# Maintainer: David Runge <[email protected]>
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+# Maintainer: Robin Candau <[email protected]>
+# Contributor: Bartłomiej Piotrowski <[email protected]>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Chris <[email protected]>
+# Contributor: m0ikz <[email protected]>
+# Contributor: atweiden <[email protected]>
+
+pkgname=ansible-core
+pkgver=2.14.4
+pkgrel=1
+pkgdesc='Radically simple IT automation platform'
+arch=('any')
+url='https://pypi.org/project/ansible-core'
+license=('GPL3')
+depends=('python' 'python-cryptography' 'python-jinja' 'python-packaging'
'python-pyyaml' 'python-resolvelib')
+# not directly required, but either convenient or indirectly required
+depends+=('python-paramiko' 'python-typing-extensions')
+optdepends=(
+ 'python-dnspython: for dig lookup'
+ 'python-jmespath: json_query support'
+ 'python-netaddr: for the ipaddr filter'
+ 'python-passlib: crypt values for vars_prompt'
+ 'python-pip: for module to manage Python libarary dependencies'
+ 'python-pywinrm: connect to Windows machines'
+ 'python-setuptools: for module to manage Python libarary dependencies'
+ 'python-systemd: for journald support'
+ 'sshpass: for ssh connections with password'
+)
+makedepends=('python-build' 'python-docutils' 'python-installer'
'python-setuptools' 'python-straight.plugin' 'python-wheel')
+provides=('python-ansible' 'ansible-base')
+replaces=('ansible-base')
+backup=('etc/ansible/ansible.cfg')
+source=("https://pypi.python.org/packages/source/a/ansible-core/ansible-core-${pkgver}.tar.gz")
+sha512sums=('86164dfded15232174e4f11140a71b91ef5b0d93b40a2df9588930b4b955f20feb419258c2bbf9d6735d298ec626c88c5e9b1c933a51e3273a28b85fac7a3762')
+b2sums=('ae096debaf676dbd46cb047f0f87af5d09b4265368500964bbd0cf3ac8e58969bee489d66486fb570a697df5b22065fae206f1df361eb911a7fe025628655371')
+
+prepare() {
+ cd $pkgname-$pkgver
+ # remove the resolvelib upper boundary (at least for < 0.9.0):
https://github.com/ansible/ansible/pull/79399
+ sed -e 's/resolvelib.*/resolvelib/' -i requirements.txt
+}
+
+build() {
+ cd $pkgname-$pkgver
+ python -m build --wheel --no-isolation
+
+ make docs
+}
+
+package() {
+ cd $pkgname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ install -Dm644 COPYING -t "${pkgdir}"/usr/share/doc/${pkgname}/
+ install -Dm644 examples/ansible.cfg -t "${pkgdir}"/etc/ansible/
+ install -Dm644 examples/{ansible.cfg,hosts} -t
"${pkgdir}"/usr/share/ansible/doc/examples/
+ install -Dm644 docs/man/man1/*.1 -t "${pkgdir}"/usr/share/man/man1/
+}