blob: ea770d342aa821188fbce46876e5a9fdfae53c81 (
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
|
# Maintainer: juliosueiras <juliosueiras [at] gmail [dot] com>
pkgname=ansible-docs-git
pkgdesc="Ansible HTML documentation"
pkgver=20170225
pkgrel=1
arch=('any')
url="https://github.com/ansible/ansible"
license=('GPL3') # true?
options=('!strip')
makedepends=('git' 'python2-sphinx')
source=('git://github.com/ansible/ansible.git')
md5sums=('SKIP')
pkgver() {
date "+%Y%m%d"
}
prepare() {
find "$srcdir"/ansible -name '*.py' -exec \
sed -i 's|^#!/usr/bin/env python|#!/usr/bin/env python2|' {} +
}
build(){
make -C "$srcdir"/ansible webdocs
}
package() {
install -dm755 "$pkgdir/usr/share/doc/ansible/html"
cp -r "$srcdir"/ansible/docs/docsite/_build/html/* "$pkgdir/usr/share/doc/ansible/html/"
}
|