summaryrefslogtreecommitdiffstats
path: root/main/ansible/APKBUILD
blob: 45c534fc1aa5c90c53d22c1052e0124f64b11b8c (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
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ansible
pkgver=1.4.1
_apkver=1
pkgrel=0
pkgdesc="Configuration-management, deployment, task-execution, and multinode orchestration framework"
url="http://ansible.cc"
arch="noarch"
license="GPL3+"
depends="python py-yaml py-paramiko py-jinja2 py-markupsafe"
makedepends="python-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ansible/ansible/archive/v$pkgver.tar.gz
		http://git.alpinelinux.org/cgit/bpiotrowski/ansible-apk/snapshot/ansible-apk-$_apkver.tar.bz2"

_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
#	cp ./library/* $pkgdir/usr/share/ansible/ || return 1
	install -m444 "$srcdir"/ansible-apk-$_apkver/library/apk \
		$pkgdir/usr/share/ansible/ || return 1

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

md5sums="39827db8724ef574e576a5348b136fad  ansible-1.4.1.tar.gz
a748a4a0be15506bddca23df85d75e8a  ansible-apk-1.tar.bz2"
sha256sums="dd4e3f5a4bbd2f65c17be208a15313c5679859b0dccb762debfa0699cb4a1bfe  ansible-1.4.1.tar.gz
2c19127279266906d5caa4ae0097ce36eac32c275e15d7722ea640b60b59356c  ansible-apk-1.tar.bz2"
sha512sums="c62f93a8446ebc47c625c9ac985a81a8bcb311b5a224585147d984eaaff9c0f7bf4a3b58e5000ea7b7ed6a04b0ef51923fbd5b84972fb4ef94792ad0ade218e4  ansible-1.4.1.tar.gz
315f0f082d942915fe0975fc7ce898ce540f956ac23c7627e52f44e8803c26511a2b2e415f7849cab7980e11795b41737ba760c8a28fdd988053768fc09983f8  ansible-apk-1.tar.bz2"