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