Date: Friday, November 18, 2022 @ 11:32:36
Author: dvzrv
Revision: 1349540
archrelease: copy trunk to community-any
Added:
ansible-core/repos/community-any/PKGBUILD
(from rev 1349539, ansible-core/trunk/PKGBUILD)
Deleted:
ansible-core/repos/community-any/PKGBUILD
----------+
PKGBUILD | 105 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 57 insertions(+), 48 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-18 11:32:26 UTC (rev 1349539)
+++ PKGBUILD 2022-11-18 11:32:36 UTC (rev 1349540)
@@ -1,48 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <[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.0
-pkgrel=1
-pkgdesc='Radically simple IT automation platform'
-arch=('any')
-url='https://pypi.org/project/ansible-core'
-license=('GPL3')
-depends=('python' 'python-yaml' 'python-paramiko' 'python-jinja'
'python-resolvelib' 'python-packaging')
-optdepends=('sshpass: for ssh connections with password'
- 'python-passlib: crypt values for vars_prompt'
- 'python-netaddr: for the ipaddr filter'
- 'python-systemd: log to journal'
- 'python-pywinrm: connect to Windows machines'
- 'python-dnspython: for dig lookup'
- 'python-jmespath: json_query support')
-makedepends=('python-setuptools' 'python-straight.plugin' 'python-docutils')
-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=('09e5b45608f7e1f341100dd89a6277a71a5ff0a45244cd6862a10d0f35a993c3cf649a5f9936ac726f7e903269f98a975804418516e602b8dd983bfca23c66cb')
-
-build() {
- cd ansible-core-${pkgver}
- python setup.py build
-
- make docs
-}
-
-package() {
- cd ansible-core-${pkgver}
- python setup.py install -O1 --root="${pkgdir}"
- install -Dm644 COPYING "${pkgdir}"/usr/share/doc/${pkgname}/COPYING
-
- install -d "${pkgdir}"/usr/share/ansible/doc
- cp -dpr --no-preserve=ownership ./examples "${pkgdir}"/usr/share/ansible/doc/
- install -Dm644 examples/ansible.cfg "${pkgdir}"/etc/ansible/ansible.cfg
-
- install -d "${pkgdir}"/usr/share/man/man1
- cp -dpr --no-preserve=ownership docs/man/man1/*.1
"${pkgdir}"/usr/share/man/man1
-}
Copied: ansible-core/repos/community-any/PKGBUILD (from rev 1349539,
ansible-core/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-11-18 11:32:36 UTC (rev 1349540)
@@ -0,0 +1,57 @@
+# Maintainer: David Runge <[email protected]>
+# Maintainer: Sven-Hendrik Haase <[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.0
+pkgrel=2
+pkgdesc='Radically simple IT automation platform'
+arch=('any')
+url='https://pypi.org/project/ansible-core'
+license=('GPL3')
+depends=('python' 'python-jinja' 'python-packaging' 'python-paramiko'
'python-pyyaml' 'python-resolvelib' '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: log to journal'
+ '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=('09e5b45608f7e1f341100dd89a6277a71a5ff0a45244cd6862a10d0f35a993c3cf649a5f9936ac726f7e903269f98a975804418516e602b8dd983bfca23c66cb')
+b2sums=('7b68d72c292d8f3e8fb2d0d66fce0eca1de1b74ec1dc3ecaa2c4b37177d693567272260b3e98c9d81f7ff5e5cc4972dfa1f24c9f5e0119bb1da528388081d5fb')
+
+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/
+}