blob: 517a4058b5453b4edefeb0eb108ccef8e7f5d3a3 (
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
57
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ansible
pkgver=2.0.0.2
pkgrel=1
pkgdesc="A configuration-management, deployment, task-execution, and multinode orchestration framework"
url="http://ansible.com"
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::http://releases.ansible.com/ansible/$pkgname-$pkgver.tar.gz
iteration-context.patch"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
python setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
mkdir -p "$pkgdir"/usr/share/man/man1
install -Dm644 "$_builddir"/docs/man/man1/*.1 \
"$pkgdir"/usr/share/man/man1/ || return 1
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples
for f in examples/*; do
install -m644 "${f}" "$pkgdir"/usr/share/doc/$pkgname/examples/
done
install -m644 README.md "$pkgdir"/usr/share/doc/$pkgname || return 1
install -m644 lib/ansible/modules/core/README.md \
"$pkgdir"/usr/share/doc/$pkgname/README.core.md || return 1
install -m644 lib/ansible/modules/extras/README.md \
"$pkgdir"/usr/share/doc/$pkgname/README.extras.md || return 1
}
md5sums="816d0c49e084383e47a725c761a0e413 ansible-2.0.0.2.tar.gz
e745fcea8520d23386d238d249742741 iteration-context.patch"
sha256sums="27db0b99113fab85b1430c361c7790a0aa7f5c614c9af13362e2adbba07e5828 ansible-2.0.0.2.tar.gz
bc11f3095ea9b00e2855a6969bce3764137f54114f979e519e299a5584dfde62 iteration-context.patch"
sha512sums="bf034384849d3f065ff77982e2e47a94727fc2982f0dac8d67efda2646dcdbd52ba9cc3ddfcdb9cd8210af0935f6f42946cc8ddc659d62cccd670e5d55c7dfa0 ansible-2.0.0.2.tar.gz
30cc45a485a1048b3e86dea8fc30b65095326e79c0b16ab4d9ab0c8362ec3cefe352500b215858c2b150b2d9a288d3e9bca05c1354969bb16ade2ad123b3df83 iteration-context.patch"
|