aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wok/APKBUILD
blob: e809a953dcd5e13cbf373c2f5d6a9477e052939b (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=wok
pkgver=2.5.0
pkgrel=2
pkgdesc="Webserver of Kimchi - a cherrypy framework for multi-purpose plug-ins"
url="https://kimchi-project.github.io/wok/"
arch="noarch"
license="Apache LGPL-2.1"
depends="python2 nginx logrotate py-cherrypy py2-jsonschema
	py2-pyparted  py2-pyldap py2-psutil py2-m2crypto py-cheetah
	py2-augeas py2-pam py2-functools32 py2-lxml py2-libvirt
	ttf-opensans ttf-font-awesome"
makedepends="automake autoconf libtool gettext-dev
	python2-dev pyflakes libxslt py-setuptools py2-websockify py2-mock"
options="!check" # tests fail
subpackages="$pkgname-lang $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/kimchi-project/wok/archive/$pkgver.tar.gz
	wokd.initd
	alpine-specific-pushserver.patch
	alpine-specific-wokd.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	sh ./autogen.sh --system
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-rpath
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -D -m755 "$srcdir"/wokd.initd \
		"$pkgdir"/etc/init.d/wokd
}

sha512sums="839fe4ac6b4dbeeaa11925e57f7291a2d9609c4c7f420fe1493e77705704908a88bddff883f188498591904ec5fb2119cb62c339ae9e20361139415685432863  wok-2.5.0.tar.gz
a05554686e0ea2d069a5b9e9b83f6aee678ed299269d86d1192ae417ba98fa8e727d55be8f396360c70846f549f46e64028956e5f7f5c50bbf5601f548c8bd71  wokd.initd
f257815edbd44baee4a3fbb680a8aa25a9804db1d2ef9326512dc7888c089c212d78e5b2cc7f6e28443dc64b10c7b7f4266e899570bcd2b25bc8bf6b4510a20d  alpine-specific-pushserver.patch
eb7a9f61d40d7edb11cc451ef25b6b2b920be23ddab7477798592bfe8a2bce8c3be21ac3d75b00d4ed3d2817af779799889fdd906d50039dec00c0c677d2c30c  alpine-specific-wokd.patch"