Skip to content

Commit 71c9533

Browse files
committed
ansible-core: Update to 2.20.0
* 0001-ctypes-cdll-loadlibrary-msys2.patch: drop, ctypes returns the rigth lib now * Add missing dependencies: cryptography, resolvelib
1 parent 809abb5 commit 71c9533

File tree

3 files changed

+41
-31
lines changed

3 files changed

+41
-31
lines changed

ansible-core/0001-ctypes-cdll-loadlibrary-msys2.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

ansible-core/PKGBUILD

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Maintainer: Alexandre Ferreira <contact@alexjorgef.com>
22

33
pkgname=ansible-core
4-
pkgver=2.19.4
4+
pkgver=2.20.0
55
pkgrel=1
66
pkgdesc='Radically simple IT automation platform'
77
arch=('any')
@@ -13,36 +13,22 @@ msys2_references=(
1313
"purl: pkg:pypi/ansible-core"
1414
)
1515
license=('spdx:GPL-3.0-or-later')
16-
depends=('python' 'python-yaml' 'python-jinja' 'python-packaging')
16+
depends=('python' 'python-yaml' 'python-jinja' 'python-packaging' 'python-cryptography' 'python-resolvelib')
1717
provides=('python-ansible' 'ansible-base')
1818
optdepends=(
1919
'sshpass: for ssh connections with password'
2020
)
2121
makedepends=('tar' 'python-build' 'python-installer' 'python-setuptools')
2222
replaces=('ansible-base')
2323
backup=('etc/ansible/ansible.cfg')
24-
source=("https://pypi.python.org/packages/source/a/ansible-core/ansible_core-${pkgver}.tar.gz"
25-
"0001-ctypes-cdll-loadlibrary-msys2.patch")
26-
sha512sums=('85129bedbfeb72a8fc4cb71e72e40dd3e0db55894bdd0a0ede78c2a69a2f06fc26db9bb700f3aa5e867b93bb494c4239315c19192277c87573d353801b3b78c9'
27-
'9932c3dfcbfc05527b26f150ba54f2f927ed47a2ff0370108d2355fb80b07440669d7d92690fb3baaf8164852eb0ef366943a561e684cfd7ddfb8b727e2b0dce')
24+
source=("https://pypi.python.org/packages/source/a/ansible-core/ansible_core-${pkgver}.tar.gz")
25+
sha512sums=('cdaefdf7a067b797627abe7d0f90d68bb0fa152572f69049b06c1c595818954f31160a97b82c47b0283867540682c73ed5bcbee02d94d973e8cb862d0c586ed8')
2826
noextract=("${pkgname/-/_}-${pkgver}.tar.gz")
2927

30-
apply_patch_with_msg() {
31-
for _fname in "$@"
32-
do
33-
msg2 "Applying ${_fname}"
34-
patch -Nbp1 -i "${srcdir}"/${_fname}
35-
done
36-
}
37-
3828
prepare() {
3929
tar zxf "${srcdir}/${pkgname/-/_}-${pkgver}.tar.gz" || tar zxf "${srcdir}/${pkgname/-/_}-${pkgver}.tar.gz"
4030

4131
cd "${srcdir}/${pkgname/-/_}-${pkgver}"
42-
43-
# Patches
44-
apply_patch_with_msg \
45-
0001-ctypes-cdll-loadlibrary-msys2.patch
4632
}
4733

4834
build() {

python-resolvelib/PKGBUILD

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
2+
3+
_name=resolvelib
4+
pkgname=python-resolvelib
5+
pkgver=1.2.1
6+
pkgrel=1
7+
pkgdesc="Resolve abstract dependencies into concrete ones"
8+
url="https://github.com/sarugaku/resolvelib"
9+
msys2_repository_url="https://github.com/sarugaku/resolvelib"
10+
msys2_references=(
11+
'archlinux: python-resolvelib'
12+
'gentoo: dev-python/resolvelib'
13+
'purl: pkg:pypi/resolvelib'
14+
)
15+
license=(spdx:ISC)
16+
arch=(any)
17+
depends=(python)
18+
makedepends=(
19+
python-build
20+
python-installer
21+
python-setuptools
22+
)
23+
source=($_name-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz)
24+
sha256sums=('4d4c4137d7b8f8f27f298ff1af2faa767d790f271928506358d25e4252ed749a')
25+
26+
build() {
27+
cd "$_name-$pkgver"
28+
29+
python -m build --wheel --no-isolation
30+
}
31+
32+
package() {
33+
cd "$_name-$pkgver"
34+
35+
python -m installer --destdir="$pkgdir" dist/*.whl
36+
install -vDm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
37+
}

0 commit comments

Comments
 (0)