d5f4e033b9
Added a README.md to explain the purpose of the directory Fixed dependencies in PKGBUILD Added patch to change python binary name for arch users, so they don't end up using python 3 (python links to python3 by default on arch linux).
49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
#Maintainer: Michel Blanc <mblanc@erasme.org>
|
|
pkgname=ansible-git
|
|
pkgver=20121116
|
|
pkgrel=1
|
|
pkgdesc="A radically simple deployment, model-driven configuration management, and command execution framework"
|
|
arch=('any')
|
|
url="https://github.com/ansible/ansible"
|
|
license=('GPL3')
|
|
depends=('python2' 'python2-yaml' 'python2-paramiko' 'python2-jinja' 'python-simplejson' 'python2-yaml')
|
|
makedepends=('git' 'asciidoc' 'fakeroot')
|
|
conflicts=('ansible')
|
|
source=("python-binary.diff")
|
|
md5sums=("8f1eb942a01bbf206dbe32bded8725c6")
|
|
|
|
_gitroot="https://github.com/ansible/ansible"
|
|
_gitname="ansible"
|
|
|
|
build() {
|
|
cd "$srcdir"
|
|
msg "Connecting to GIT server...."
|
|
|
|
if [ -d $_gitname ] ; then
|
|
cd $_gitname && git pull origin
|
|
msg "The local files are updated."
|
|
else
|
|
git clone $_gitroot $_gitname
|
|
fi
|
|
|
|
msg "GIT checkout done or server timeout"
|
|
|
|
|
|
cd "$srcdir/$_gitname"
|
|
patch -p1 -i $srcdir/python-binary.diff
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$_gitname"
|
|
|
|
mkdir -p ${pkgdir}/usr/share/ansible
|
|
cp ./library/* ${pkgdir}/usr/share/ansible/
|
|
python2 setup.py install -O1 --root=${pkgdir}
|
|
|
|
install -D docs/man/man1/ansible.1 ${pkgdir}/usr/share/man/man1/ansible.1
|
|
install -D docs/man/man1/ansible-playbook.1 ${pkgdir}/usr/share/man/man1/ansible-playbook.1
|
|
|
|
gzip -9 ${pkgdir}/usr/share/man/man1/ansible.1
|
|
gzip -9 ${pkgdir}/usr/share/man/man1/ansible-playbook.1
|
|
}
|