# Maintainer: Amin Vakil # Contributor: Jack Rubacha # Contributor: Paul Nicholson # Contributor: Sven-Hendrik Haase # Contributor: Bartłomiej Piotrowski # Contributor: Daniel Wallace # Contributor: Chris # Contributor: m0ikz # Contributor: atweiden pkgname=ansible-core-git pkgver=r50796.c20329a0f6 pkgrel=1 pkgdesc='Radically simple IT automation platform' arch=('any') url='https://github.com/ansible/ansible' license=('GPL3') depends=('python' 'python-yaml' 'python-paramiko' 'python-jinja') provides=('ansible-core' 'ansible-base' 'python-ansible') replaces=('ansible-core' 'ansible-base' 'python-ansible') conflicts=('ansible-core' 'ansible-base' 'python-ansible') optdepends=('sshpass: for ssh connections with password' 'python-passlib: crypt values for vars_prompt' 'python-netaddr: for the ipaddr filter' 'python-systemd: log to journal' 'python-pywinrm: connect to Windows machines' 'python-dnspython: for dig lookup' 'python-jmespath: json_query support') makedepends=('python-setuptools' 'git') backup=('etc/ansible/ansible.cfg') source=($pkgname::git+https://github.com/ansible/ansible.git) sha512sums=('SKIP') pkgver() { cd "$pkgname" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "${srcdir}"/${pkgname} python setup.py build } package() { cd ${pkgname} python setup.py install -O1 --root="${pkgdir}" install -Dm644 COPYING "${pkgdir}"/usr/share/doc/${pkgname}/COPYING install -d "${pkgdir}"/usr/share/ansible/doc cp -dpr --no-preserve=ownership ./examples "${pkgdir}"/usr/share/ansible/doc/ install -Dm644 examples/ansible.cfg "${pkgdir}"/etc/ansible/ansible.cfg }