# Contributor: Łukasz Jendrysik # Contributor: Sören Tempel # Maintainer: Fabian Affolter pkgname=ansible pkgver=2.2.0.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" 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 || return 1 } package() { cd "$builddir" python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 mkdir -p "$pkgdir"/usr/share/man/man1 install -Dm644 "$builddir"/docs/man/man1/*.1 \ "$pkgdir"/usr/share/man/man1/ || return 1 mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples/ install -m644 examples/* \ "$pkgdir"/usr/share/doc/$pkgname/examples/ \ || return 1 install -m644 README.md "$pkgdir"/usr/share/doc/$pkgname || return 1 install -m644 lib/ansible/modules/core/README.md \ "$pkgdir"/usr/share/doc/$pkgname/README.core.md || return 1 install -m644 lib/ansible/modules/extras/README.md \ "$pkgdir"/usr/share/doc/$pkgname/README.extras.md || return 1 } md5sums="a19999efedc1b97b91250cda5df73f8a ansible-2.2.0.0.tar.gz" sha256sums="d9f198d293394ce0f8ba802561b21368888e3301036a706b5584641b49408586 ansible-2.2.0.0.tar.gz" sha512sums="8bb8360f41e920c46552ead826a342311d0acffa264334c8c8ae868f8bf45caad4ff2b9c9c0ec4e551653edaf80eb49d8dece5c2ba7e1088c2ce74d3ff0e3130 ansible-2.2.0.0.tar.gz"