summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29324643a1b1e814d0134a6e593b0aa46fb898d0 (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: 10sr <8slashes+arch [at] gmail [dot] com>

pkgname=ansible-docs-git
pkgdesc="Ansible HTML documentation"
pkgver=20150107
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/docsite/htmlout/* "$pkgdir/usr/share/doc/ansible/html/"
}