# Contributor: Łukasz Jendrysik # Contributor: Sören Tempel # Contributor: Takuya Noguchi # Maintainer: Fabian Affolter pkgname=ansible pkgver=2.4.0.0 pkgrel=0 pkgdesc="A configuration-management, deployment, task-execution, and multinode orchestration framework" url="https://ansible.com" arch="noarch" license="GPL3+" _py=py2 depends="python2 $_py-yaml $_py-paramiko $_py-jinja2 $_py-markupsafe $_py-crypto" makedepends="python2-dev py-setuptools" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://releases.ansible.com/ansible/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" python2 setup.py build } package() { cd "$builddir" python2 setup.py install --prefix=/usr --root="$pkgdir" mkdir -p "$pkgdir"/usr/share/man/man1 install -Dm644 "$builddir"/docs/man/man1/*.1 \ "$pkgdir"/usr/share/man/man1/ mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples/ install -m644 examples/* \ "$pkgdir"/usr/share/doc/$pkgname/examples/ install -m644 README.md "$pkgdir"/usr/share/doc/$pkgname } sha512sums="78717b19599bdd46a7285b0b2a4c9d0d5b4cb86fd41dcf0b3340cf65945a55fae4508097058098fbeab871422c31d4f37ab4cd149abfd0af5add6004f65a207b ansible-2.4.0.0.tar.gz"