aboutsummaryrefslogtreecommitdiffstats
path: root/main/ansible/APKBUILD
blob: 167b226e43f220b05e40a514b6816c441932374b (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
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ansible
pkgver=1.9.2
_apkver=1
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

	install -d $pkgdir/usr/share/ansible || return 1
	_manpages="$pkgname-playbook.1 $pkgname.1"
	for _manpage in "$_builddir"/docs/man/man1/*.1; do
		install -Dm644 "$_manpage" \
		"$pkgdir"/usr/share/man/man1/$_manpage || return 1
	done
}

md5sums="5e0a72c8b7a3848907ac28b5f38cfc27  ansible-1.9.2.tar.gz"
sha256sums="c25ef4738b08fdfb3094247c012f3fd1b29972acbd37f988070b2a85f5fbee00  ansible-1.9.2.tar.gz"
sha512sums="6c0b3eaac11e11bf90f5b63c54da86df0cb33b0ee98c987c48a68fa643b39e9f0817884767f2bd9c0f6e8852d37fd1b197d5299abc574fccc181fbb22985d4ad  ansible-1.9.2.tar.gz"