# Contributor: Łukasz Jendrysik # Contributor: Sören Tempel # Maintainer: Fabian Affolter pkgname=ansible pkgver=2.2.2.0 pkgrel=0 pkgdesc="A configuration-management, deployment, task-execution, and multinode orchestration framework" url="http://ansible.com" arch="noarch" license="GPL3+" 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::http://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 install -m644 lib/ansible/modules/core/README.md \ "$pkgdir"/usr/share/doc/$pkgname/README.core.md install -m644 lib/ansible/modules/extras/README.md \ "$pkgdir"/usr/share/doc/$pkgname/README.extras.md } sha512sums="e5d902e6c8d67c2b5e1e907dffab7a36505cc96a9748915dd8340f78b6bf5ced2efe2153f621ecceafc75750729d3e2e26c9c7c95b3a6d15838e6c36de8b8b60 ansible-2.2.2.0.tar.gz"