PKGBUILD 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  2. _pkgname=arch-wiki-lite
  3. pkgname=parabola-wiki-lite
  4. pkgver=20160606
  5. _codever=20160430
  6. pkgrel=2
  7. pkgdesc="The wiki without html. 1/9 as big, easily searched and viewable on console."
  8. arch=('any')
  9. url="http://kmkeen.com/arch-wiki-lite/"
  10. _watch="https://www.parabola.onu/packages/libre/any/parabola-wiki-docs/"
  11. license=('GPL' 'FDL')
  12. depends=('bash' 'gzip')
  13. makedepends=('python' 'parabola-wiki-docs')
  14. optdepends=('dialog: for interactive menu'
  15. 'parabola-wiki-docs: for wiki-search-html'
  16. 'xdg-utils: for wiki-search-html')
  17. replaces=('arch-wiki-lite')
  18. conflicts=('arch-wiki-lite')
  19. mksource=("http://kmkeen.com/$_pkgname/$_pkgname-$_codever.tar.gz"
  20. 'libre.patch')
  21. source=("https://repo.parabola.nu/other/$pkgname/$pkgname-$pkgver.tar.gz")
  22. mkmd5sums=('827909e927c20303395d74c65e34f04e'
  23. '1f039df2eae54ac2c5d56bb3d31c4ed9')
  24. md5sums=('d846ef6e76cf2f0b15ab539d00fed60b')
  25. mksource() {
  26. cd "$srcdir/$_pkgname"
  27. patch -p1 -i "$srcdir/libre.patch"
  28. mv "$srcdir/$_pkgname" "$srcdir/$pkgname"
  29. }
  30. build() {
  31. cd "$srcdir/$pkgname"
  32. LC_ALL=en_US.UTF-8 python3 wiki_lite.py
  33. }
  34. package() {
  35. cd "$srcdir/$pkgname"
  36. install -d "$pkgdir/usr/share/doc/parabola-wiki/text/"
  37. install -m 0644 wiki/* "$pkgdir/usr/share/doc/parabola-wiki/text/"
  38. install -Dm 0755 wiki-search "$pkgdir/usr/bin/wiki-search"
  39. install -Dm 0755 wiki-search-html "$pkgdir/usr/bin/wiki-search-html"
  40. install -Dm 0644 wiki-search.dialog.rc "$pkgdir/etc/dialog.d/wiki-search.dialog.rc"
  41. }