Advertisement
Guest User

wokd PKGBUILD

a guest
Jan 24th, 2020
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. # Maintainer: cr0mag <phillips.julian AT gmail DOT com>
  2. # Contributor: rafaelsoaresbr <rafaelsoaresbr@gmail.com>
  3. # wokd
  4. # Contributing: https://github.com/rafaelsoaresbr/pkgbuild
  5. # Builds: https://gitlab.com/rafaelsoaresbr/pkgbuild/builds
  6. #pkgbase=()
  7. pkgname=('wokd')
  8.  
  9. # Version
  10. pkgver=3.0.0
  11. pkgrel=3
  12. #epoch=
  13.  
  14. # Generic
  15. pkgdesc="Webserver originated from Kimchi - a cherrypy framework for multi-purpose plug-ins"
  16. arch=('any')
  17. url="https://github.com/kimchi-project/wok/"
  18. license=('LGPL' 'Apache')
  19. groups=('kimchi-project')
  20.  
  21. # Dependencies
  22. depends=('nginx'
  23. 'openssl'
  24. 'python-cherrypy'
  25. 'python-cheetah3'
  26. 'python-pam'
  27. 'python-m2crypto'
  28. 'python-jsonschema'
  29. 'python-psutil'
  30. 'python-ldap'
  31. 'python-lxml'
  32. 'python-orderedmultidict'
  33. 'python-numpy'
  34. 'ttf-font-awesome-4'
  35. 'websockify')
  36. #optdepends=()
  37. makedepends=('git' 'libxslt' 'logrotate')
  38. #checkdepends=()
  39.  
  40. # Package Relations
  41. #provides=()
  42. conflicts=('wokd-git')
  43. #replaces=()
  44.  
  45. # Others
  46. backup=('etc/wok/wok.conf')
  47. #options=()
  48. install=wokd.install
  49. #changelog=
  50.  
  51. # Sources
  52. source=('https://github.com/kimchi-project/wok/archive/'${pkgver}'.tar.gz')
  53. #source_i686=("")
  54. #source_x86_64=("")
  55. #noextract=()
  56. #validpgpkeys=()
  57.  
  58. # Integrity
  59. #md5sums=()
  60. #md5sums_i686=()
  61. #md5sums_x86_64=()
  62. #sha1sums=()
  63. sha256sums=('34ca6f5e9cc97515cc9e5d3ba9cb64bde88fa40acff751c3bed5aa2f89896f10')
  64. #pkgver() {
  65. #}
  66.  
  67. prepare() {
  68. cd "$srcdir/wok-${pkgver}"
  69. #replaces previous python.patch file
  70. #sed --in-place 's/^#!\/usr\/bin\/python/#!\/usr\/bin\/python2/' src/wok/proxy.py
  71. #can't find upper-case PAM module; better solution?
  72. sed --in-place 's/^import PAM/import pam/' src/wok/auth.py
  73. #workaround for https://github.com/kimchi-project/wok/issues/234
  74. #sed --in-place 's/cherrypy.engine.timeout_monitor.unsubscribe()/#cherrypy.engine.timeout_monitor.unsubscribe()/' src/wok/server.py
  75. }
  76.  
  77. build() {
  78. cd "$srcdir/wok-${pkgver}"
  79. PYTHON=/usr/bin/python3 ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  80. #PYTHON=/usr/bin/python2 ./autogen.sh --system && make
  81. }
  82.  
  83. #check() {
  84. #}
  85.  
  86. package () {
  87. cd "$srcdir/wok-${pkgver}"
  88. make DESTDIR=$pkgdir install
  89. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement