summaryrefslogtreecommitdiff
path: root/libre/parabola-wiki-docs
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-06-05 03:11:45 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-06-05 03:11:45 -0500
commitfe44f44bfd05912503be330af9d15b581744120f (patch)
treec4789498b113890ef353d3f8779fc39a134c700a /libre/parabola-wiki-docs
parent958d0161c79a873d45d0688c96dc667e47fc400f (diff)
parabola-wiki-docs: add new package to [libre] - Packaging request #1024 -> https://labs.parabola.nu/issues/1024
Diffstat (limited to 'libre/parabola-wiki-docs')
-rw-r--r--libre/parabola-wiki-docs/PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/libre/parabola-wiki-docs/PKGBUILD b/libre/parabola-wiki-docs/PKGBUILD
new file mode 100644
index 000000000..3dacca278
--- /dev/null
+++ b/libre/parabola-wiki-docs/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+pkgname=parabola-wiki-docs
+pkgdesc="Pages from Parabola Wiki optimized for offline browsing"
+pkgver=20160605
+_commit=98fa13fd57df6191fdae98065e0c713f3040a0e0
+pkgrel=1
+arch=('any')
+url="https://notabug.org/ovruni/parabola-wiki-docs"
+license=('FDL')
+options=('!strip')
+makedepends=('git' 'python' 'python-simplemediawiki' 'python-lxml' 'python-cssselect')
+source=("git+https://notabug.org/ovruni/parabola-wiki-docs.git#commit=${_commit}")
+md5sums=('SKIP')
+
+pkgver() {
+ date "+%Y%m%d"
+}
+
+prepare() {
+ cd "$pkgname"
+ LANG=en_US.UTF-8 python parabola-wiki-docs.py --output-directory "$srcdir/build_wiki" --clean --safe-filenames
+}
+
+package() {
+ install -dm755 "$pkgdir/usr/share/doc/parabola-wiki/html"
+ cp -r "$srcdir"/build_wiki/* "$pkgdir/usr/share/doc/parabola-wiki/html/"
+} \ No newline at end of file