summaryrefslogtreecommitdiff
path: root/testing/wok/APKBUILD
blob: df06ecbf0d4ce9ae66d5fdb264a55327a2d85441 (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=0
pkgdesc="Webserver of Kimchi - a cherrypy framework for multi-purpose plug-ins"
url="http://kimchi-project.github.io/wok/"
arch="noarch"
license="APACHE LGPL2.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 py-cherrypy
	ttf-opensans ttf-font-awesome"
makedepends="automake autoconf libtool gettext-dev
	python2-dev pyflakes libxslt"
options="!check"
subpackages="$pkgname-lang $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/kimchi-project/$pkgname/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="780bbb3e7fe37b4a91f222ba5004efbc05f59555779b55c836fda856d5c2db244ee45b61b0f4099219ac8f8b74afa5268e41e9f416b7af441c8de4a0de04af76  wok-2.5.0.tar.gz
a05554686e0ea2d069a5b9e9b83f6aee678ed299269d86d1192ae417ba98fa8e727d55be8f396360c70846f549f46e64028956e5f7f5c50bbf5601f548c8bd71  wokd.initd
f257815edbd44baee4a3fbb680a8aa25a9804db1d2ef9326512dc7888c089c212d78e5b2cc7f6e28443dc64b10c7b7f4266e899570bcd2b25bc8bf6b4510a20d  alpine-specific-pushserver.patch
eb7a9f61d40d7edb11cc451ef25b6b2b920be23ddab7477798592bfe8a2bce8c3be21ac3d75b00d4ed3d2817af779799889fdd906d50039dec00c0c677d2c30c  alpine-specific-wokd.patch"