diff options
author | 10sr | 2015-06-28 02:39:14 +0900 |
---|---|---|
committer | 10sr | 2015-06-28 02:39:14 +0900 |
commit | 472904c9560a24fdc42cc580c4da67ae8f21743a (patch) | |
tree | d1092863dfb6f8badcd908f28d7c6bb6ae1912b0 /PKGBUILD | |
download | aur-472904c9560a24fdc42cc580c4da67ae8f21743a.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..29324643a1b1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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/" +} |