aboutsummaryrefslogtreecommitdiffstats
path: root/community/wt/APKBUILD
blob: a414062ed435d70622fdaef8ef4e946225968f3a (plain) (blame)
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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=wt
pkgver=4.2.0
pkgrel=1
pkgdesc="A C++ library and application server for developing and deploying web applications"
url="https://www.webtoolkit.eu"
arch="all"
license="GPL-2.0-or-later WITH openssl-exception"
depends_dev="zlib-dev boost-dev sqlite-dev mesa-dev glu-dev graphicsmagick-dev
	openssl-dev pango-dev fcgi-dev postgresql-dev qt5-qtbase-dev libharu-dev
	harfbuzz-dev"
makedepends="$depends_dev cmake boost"
pkggroups="wt"
pkgusers="wt"
options="!check"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/kdeforche/$pkgname/archive/$pkgver.tar.gz"

build() {
	mkdir -p build && cd build
	CXXFLAGS="-fpermissive" \
	cmake \
	      -DCONNECTOR_HTTP=ON \
	      -DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick \
	      -DCMAKE_INSTALL_PREFIX=/usr \
	      -DWEBUSER=$pkgusers \
	      -DWEBGROUP=$pkggroups \
	      -DRUNDIR="$pkgdir"/var/run/wt \
	      -DUSE_SYSTEM_SQLITE3=ON \
	      -DINSTALL_EXAMPLES=ON \
	      -DBUILD_EXAMPLES=OFF \
	..
	make
}

package() {
	cd "$builddir"/build
	make DESTDIR=$pkgdir install
	rm -rf $pkgdir/usr/cmake
	rm -rf $pkgdir/var/run
}

sha512sums="55d8684f3574a2373c70a2207609b80f43c2235def813871111fefd0e6b4704d1b774a07e258240ee65ada84a07dfc61e2c14f121c92391588c9a5dd992293ad  wt-4.2.0.tar.gz"