# Contributor: Sören Tempel # Maintainer: Fabian Affolter pkgname=ansible pkgver=2.0.1.0 pkgrel=1 pkgdesc="A configuration-management, deployment, task-execution, and multinode orchestration framework" url="http://ansible.com" arch="noarch" license="GPL3+" depends="python py-yaml py-paramiko py-jinja2 py-markupsafe" makedepends="python-dev py-setuptools" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::http://releases.ansible.com/ansible/$pkgname-$pkgver.tar.gz " _builddir="$srcdir"/$pkgname-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" python setup.py build || return 1 } package() { cd "$_builddir" python 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 for f in examples/*; do install -m644 "${f}" "$pkgdir"/usr/share/doc/$pkgname/examples/ done 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="84c576762bc1a8a345fe12ac338bd2d8 ansible-2.0.1.0.tar.gz" sha256sums="cddc4fa6af4c1be6cd1d6634de1bd0397abad921c76b32cab6722c042744ee5d ansible-2.0.1.0.tar.gz" sha512sums="ed126341ddae2be8f55984d7bc8b6232239f59a56f8028f19f8e2ee25096b3bba934b88b2ee72b53bbbdd245ec51a10dfbc3ffed9e0bc9f13444557ff490d6df ansible-2.0.1.0.tar.gz"