forked from ansible/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
57 lines (48 loc) · 1.83 KB
/
PKGBUILD
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
57
# Maintainer: Michel Blanc <[email protected]>
# Contributor: Scott Hansen https://github.com/firecat53
# Contributor: Buce <[email protected]>
# Contributor: Bartłomiej Piotrowski <[email protected]>
# Contributor: cgtx <[email protected]>
# Contributor: Daniel Wallace <[email protected]>
# Contributor: John Gosset <[email protected]>
# Contributor: Joshua Lund <[email protected]>
# Contributor: Matt Klich <[email protected]>
# Contributor: Michael DeHaan <[email protected]>
pkgname=ansible-git
pkgver=1.6.0.1835.ga1809a3
pkgrel=1
pkgdesc='Radically simple IT automation platform'
arch=('any')
url='http://www.ansible.com'
license=('GPL3')
depends=('python2' 'python2-paramiko' 'python2-jinja' 'python2-yaml')
makedepends=('git' 'asciidoc' 'fakeroot')
optdepends=('python2-pyasn1: needed for accelerated mode'
'python2-crypto: needed for accelerated mode'
'python2-keyczar: needed for accelerated mode')
conflicts=('ansible')
provides=('ansible')
backup=('etc/ansible/ansible.cfg')
source=($pkgname::git://github.com/ansible/ansible.git)
md5sums=('SKIP')
pkgver() {
cd $pkgname
git describe --long | sed 's/^v//;s/-/./g'
}
build() {
cd $pkgname
git submodule update --init --recursive
make PYTHON=python2
}
package() {
cd $pkgname
install -dm755 $pkgdir/usr/share/ansible
cp -dpr --no-preserve=ownership ./examples "$pkgdir/usr/share/ansible"
python2 setup.py install -O1 --root="$pkgdir"
install -Dm644 examples/ansible.cfg $pkgdir/etc/ansible/ansible.cfg
install -Dm644 README.md $pkgdir/usr/share/doc/ansible/README.md
install -Dm644 COPYING $pkgdir/usr/share/doc/ansible/COPYING
install -Dm644 CHANGELOG.md $pkgdir/usr/share/doc/ansible/CHANGELOG.md
install -dm755 ${pkgdir}/usr/share/man/man1
cp -dpr --no-preserve=ownership docs/man/man1/*.1 "$pkgdir/usr/share/man/man1"
}