PKGBUILD 886 B

123456789101112131415161718192021222324252627282930
  1. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  2. pkgname=parabola-wiki-docs
  3. pkgdesc="Pages from Parabola Wiki optimized for offline browsing"
  4. pkgver=20160605
  5. _commit=98fa13fd57df6191fdae98065e0c713f3040a0e0
  6. pkgrel=1
  7. arch=('any')
  8. url="https://notabug.org/ovruni/parabola-wiki-docs"
  9. license=('FDL')
  10. options=('!strip')
  11. makedepends=('git' 'python' 'python-simplemediawiki' 'python-lxml' 'python-cssselect')
  12. replaces=('arch-wiki-docs')
  13. conflicts=('arch-wiki-docs')
  14. source=("git+https://notabug.org/ovruni/parabola-wiki-docs.git#commit=${_commit}")
  15. md5sums=('SKIP')
  16. pkgver() {
  17. date "+%Y%m%d"
  18. }
  19. prepare() {
  20. cd "$pkgname"
  21. LANG=en_US.UTF-8 python parabola-wiki-docs.py --output-directory "$srcdir/build_wiki" --clean --safe-filenames
  22. }
  23. package() {
  24. install -dm755 "$pkgdir/usr/share/doc/parabola-wiki/html"
  25. cp -r "$srcdir"/build_wiki/* "$pkgdir/usr/share/doc/parabola-wiki/html/"
  26. }