blob: 74f02949a45e79874ef08938dd10d237bada46e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#Maintainer: Michel Blanc <mblanc@erasme.org>
pkgname=ansible-git
pkgver=1.1.912.gedb6a68
pkgver(){
cd "$srcdir/$pkgname"
git describe --tags --long | sed 's/^v//;s/-/./g'
}
pkgrel=1
pkgdesc="A radically simple IT automation"
arch=('any')
url="http://www.ansible.com"
license=('GPL3')
depends=('python2' 'python2-paramiko' 'python2-jinja' 'python2-yaml')
makedepends=('git' 'asciidoc' 'fakeroot')
optdepends=('python2-pyzmq: needed for fireball mode'
'python2-pyasn1: needed for fireball mode'
'python2-crypto: needed for fireball mode'
'python2-keyczar: needed for fireball mode')
conflicts=('ansible')
provides=('ansible')
source=("$pkgname::git://github.com/ansible/ansible.git"
"python-binary.diff")
md5sums=("SKIP" "ab81876d8d4c86c27d137e3d86c25a3a")
backup=('etc/ansible/ansible.cfg')
prepare(){
cd "$srcdir/$pkgname"
patch -p1 -i "$srcdir/python-binary.diff"
}
build() {
cd "$srcdir/$pkgname"
make
}
package() {
cd "$srcdir/$pkgname"
mkdir -p "${pkgdir}/usr/share/ansible"
cp -dpr --no-preserve=ownership ./library/* "${pkgdir}/usr/share/ansible/"
cp -dpr --no-preserve=ownership ./examples "${pkgdir}/usr/share/ansible"
python2 setup.py install -O1 --root="$pkgdir"
install -D examples/ansible.cfg "$pkgdir/etc/ansible/ansible.cfg"
install -D README.md "$pkgdir/usr/share/doc/ansible/README.md"
install -D COPYING "$pkgdir/usr/share/doc/ansible/COPYING"
install -D CHANGELOG.md "$pkgdir/usr/share/doc/ansible/CHANGELOG.md"
install -D CONTRIBUTING.md "$pkgdir/usr/share/doc/ansible/CONTRIBUTING.md"
install -D RELEASES.txt "$pkgdir/usr/share/doc/ansible/RELEASES.txt"
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"
install -D docs/man/man1/ansible-pull.1 "${pkgdir}/usr/share/man/man1/ansible-pull.1"
install -D docs/man/man1/ansible-doc.1 "${pkgdir}/usr/share/man/man1/ansible-doc.1"
}
|