aboutsummaryrefslogtreecommitdiffstats
path: root/main/ansible/APKBUILD
blob: a238cceafd033cb06510b760a6410be305901149 (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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ansible
pkgver=2.1.1.0
pkgrel=0
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"

builddir="$srcdir"/$pkgname-$pkgver
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="d2521bc6416d07996e924fdd2d1fa6a2  ansible-2.1.1.0.tar.gz"
sha256sums="61e739c123923ba90169f42c54e5f51df759ed40b4e332a7160d7db963d5678b  ansible-2.1.1.0.tar.gz"
sha512sums="c6537736fc3776d885fad04d02d0ec3b95e331d988fe4a696be90a7f4b1fa30ff8cbb34701f80857dbdcc049356d501ff2f613f65d2287b2d7b20c08cd7b1cd5  ansible-2.1.1.0.tar.gz"