summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD31
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..abe154c2fc9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ansible-docs-git
+ pkgdesc = Ansible HTML documentation
+ pkgver = 20150107
+ pkgrel = 1
+ url = https://github.com/ansible/ansible
+ arch = any
+ license = GPL3
+ makedepends = git
+ makedepends = python2-sphinx
+ options = !strip
+ source = git://github.com/ansible/ansible.git
+ md5sums = SKIP
+
+pkgname = ansible-docs-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..29324643a1b
--- /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/"
+}