ansible-core: update to 2.16.14
Upstream changed the name of the downloadable artifact from ansible-core-<version>.tar.gz to ansible_core-<version>.tar.gz, so a bit of character juggling is added to compensate for that.
This commit is contained in:
parent
89781c8770
commit
67b7eefe9d
@ -1,8 +1,8 @@
|
|||||||
# Maintainer: Alexandre Ferreira <contact@alexjorgef.com>
|
# Maintainer: Alexandre Ferreira <contact@alexjorgef.com>
|
||||||
|
|
||||||
pkgname=ansible-core
|
pkgname=ansible-core
|
||||||
pkgver=2.16.2
|
pkgver=2.16.14
|
||||||
pkgrel=3
|
pkgrel=1
|
||||||
pkgdesc='Radically simple IT automation platform'
|
pkgdesc='Radically simple IT automation platform'
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url='https://pypi.org/project/ansible-core'
|
url='https://pypi.org/project/ansible-core'
|
||||||
@ -21,11 +21,11 @@ optdepends=(
|
|||||||
makedepends=('tar' 'python-build' 'python-installer' 'python-setuptools')
|
makedepends=('tar' 'python-build' 'python-installer' 'python-setuptools')
|
||||||
replaces=('ansible-base')
|
replaces=('ansible-base')
|
||||||
backup=('etc/ansible/ansible.cfg')
|
backup=('etc/ansible/ansible.cfg')
|
||||||
source=("https://pypi.python.org/packages/source/a/ansible-core/ansible-core-${pkgver}.tar.gz"
|
source=("https://pypi.python.org/packages/source/a/ansible-core/ansible_core-${pkgver}.tar.gz"
|
||||||
"0001-ctypes-cdll-loadlibrary-msys2.patch")
|
"0001-ctypes-cdll-loadlibrary-msys2.patch")
|
||||||
sha512sums=('6e2389fc6b34645c0f1566eca960da36616619a5ed5e35b46f3d659979fe519db20d89b4f598344a389f4b6ac33bb660ea91a1a6509002bbf4ac791ea3cb4cbd'
|
sha512sums=('246875815234112b9c4f7aa31d971f0c0017c9bc4195116741fb5db2e70c6d8feacc29b9882c9b6c4a3186be1d6bea0571be10541d0d8593fb7da3d46f30e2e8'
|
||||||
'f129850ecf75b48dd89b2f43e7f09a2585d63959be807299f5c1ddcdb12ecafafa4a230dc0d8a9c284d5d6fec21eae22eb4c0c8c5fde37a09d7bdac7b8503b98')
|
'f129850ecf75b48dd89b2f43e7f09a2585d63959be807299f5c1ddcdb12ecafafa4a230dc0d8a9c284d5d6fec21eae22eb4c0c8c5fde37a09d7bdac7b8503b98')
|
||||||
noextract=("${pkgname}-${pkgver}.tar.gz")
|
noextract=("${pkgname/-/_}-${pkgver}.tar.gz")
|
||||||
|
|
||||||
apply_patch_with_msg() {
|
apply_patch_with_msg() {
|
||||||
for _fname in "$@"
|
for _fname in "$@"
|
||||||
@ -36,9 +36,9 @@ apply_patch_with_msg() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
tar zxf "${srcdir}/${pkgname}-${pkgver}.tar.gz" || tar zxf "${srcdir}/${pkgname}-${pkgver}.tar.gz"
|
tar zxf "${srcdir}/${pkgname/-/_}-${pkgver}.tar.gz" || tar zxf "${srcdir}/${pkgname/-/_}-${pkgver}.tar.gz"
|
||||||
|
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
cd "${srcdir}/${pkgname/-/_}-${pkgver}"
|
||||||
|
|
||||||
# Patches
|
# Patches
|
||||||
apply_patch_with_msg \
|
apply_patch_with_msg \
|
||||||
@ -46,12 +46,12 @@ prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
cd "${srcdir}/${pkgname/-/_}-${pkgver}"
|
||||||
python -m build --wheel --skip-dependency-check --no-isolation
|
python -m build --wheel --skip-dependency-check --no-isolation
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd ${pkgname}-${pkgver}
|
cd ${pkgname/-/_}-${pkgver}
|
||||||
python -m installer --destdir="${pkgdir}" dist/*.whl
|
python -m installer --destdir="${pkgdir}" dist/*.whl
|
||||||
install -Dm644 COPYING "${pkgdir}"/usr/share/doc/${pkgname}/COPYING
|
install -Dm644 COPYING "${pkgdir}"/usr/share/doc/${pkgname}/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user