# Contributor: Łukasz Jendrysik # Contributor: Sören Tempel # Maintainer: Fabian Affolter pkgname=ansible pkgver=2.2.1.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="9e6e3961a0aa78a94b2fcdbb73e94fe9 ansible-2.2.1.0.tar.gz" sha256sums="63a12ea784c0f90e43293b973d5c75263634c7415e463352846cd676c188e93f ansible-2.2.1.0.tar.gz" sha512sums="10f90f4ac68215febd14e36fa9ea3b2156677f2b7a29a08633e0702bcbd8a7c3551980deeabcff756380b076ac7ba6a5e9eca07af66d908d8d6627390744bc00 ansible-2.2.1.0.tar.gz"