ansible: port to build/installer
This commit is contained in:
parent
7a243da42b
commit
e5b473942f
@ -2,15 +2,21 @@
|
||||
|
||||
pkgname=ansible
|
||||
pkgver=2.9.21
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc='Radically simple IT automation platform'
|
||||
arch=('any')
|
||||
url='https://www.ansible.com'
|
||||
license=('GPL3')
|
||||
license=('spdx:GPL-3.0-or-later')
|
||||
depends=('python' 'python-yaml' 'python-jinja')
|
||||
provides=('python-ansible')
|
||||
optdepends=('sshpass: for ssh connections with password')
|
||||
makedepends=('tar' 'python-setuptools')
|
||||
makedepends=(
|
||||
'tar'
|
||||
"python-setuptools"
|
||||
"python-wheel"
|
||||
"python-build"
|
||||
"python-installer"
|
||||
)
|
||||
backup=('etc/ansible/ansible.cfg')
|
||||
source=("https://releases.ansible.com/ansible/ansible-${pkgver}.tar.gz")
|
||||
sha512sums=('572f04736bea590770db9b58e7fca8cf3b53b858a0cd2e16667e9d1935d173fa2a0a116d04e0ed976095fbd6b8cd878d21d3e5c4749046b39d121b9ac8b5c441')
|
||||
@ -25,12 +31,12 @@ prepare() {
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
/usr/bin/python setup.py build
|
||||
python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
/usr/bin/python setup.py install -O1 --root="${pkgdir}"
|
||||
python -m installer --destdir="${pkgdir}" dist/*.whl
|
||||
install -Dm644 COPYING "${pkgdir}"/usr/share/doc/ansible/COPYING
|
||||
|
||||
install -d "${pkgdir}"/usr/share/ansible/doc
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user