# Maintainer: Fabian Affolter pkgname=ansible pkgver=1.6.5 _apkver=1 pkgrel=0 pkgdesc="Configuration-management, deployment, task-execution, and multinode orchestration framework" url="http://ansible.cc" 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::https://github.com/ansible/ansible/archive/v$pkgver.tar.gz http://git.alpinelinux.org/cgit/bpiotrowski/ansible-apk/snapshot/ansible-apk-$_apkver.tar.bz2" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 install -d $pkgdir/usr/share/ansible || return 1 # cp ./library/* $pkgdir/usr/share/ansible/ || return 1 install -m444 "$srcdir"/ansible-apk-$_apkver/library/apk \ $pkgdir/usr/share/ansible/ || return 1 _manpages="$pkgname-playbook.1 $pkgname.1" for _manpage in $_manpages; do install -Dm644 "$_builddir"/docs/man/man1/$_manpage \ "$pkgdir"/usr/share/man/man1/$_manpage || return 1 done } md5sums="899e155caa00338ba41e31578dfd4700 ansible-1.6.5.tar.gz a748a4a0be15506bddca23df85d75e8a ansible-apk-1.tar.bz2" sha256sums="605c0632b67b063e9de31279c641ec9cac9532b35d86d09f2f77b93430d129b5 ansible-1.6.5.tar.gz 2c19127279266906d5caa4ae0097ce36eac32c275e15d7722ea640b60b59356c ansible-apk-1.tar.bz2" sha512sums="ad7b2511a43f757029ad1c82c658304fe7c8d0ff4d16582910fc58b9f928804fe3319e64643d6430161e88f85b6466eef1a6b357bbd396fbdd39625be38036e9 ansible-1.6.5.tar.gz 315f0f082d942915fe0975fc7ce898ce540f956ac23c7627e52f44e8803c26511a2b2e415f7849cab7980e11795b41737ba760c8a28fdd988053768fc09983f8 ansible-apk-1.tar.bz2"