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

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCONNECTOR_HTTP=ON \
		-DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DWEBUSER=$pkgusers \
		-DWEBGROUP=$pkggroups \
		-DRUNDIR=/run/wt \
		-DUSE_SYSTEM_SQLITE3=ON \
		-DINSTALL_EXAMPLES=ON \
		-DBUILD_EXAMPLES=OFF
	cmake --build build
}

package() {
	DESTDIR=$pkgdir cmake --install build
	rm -rf $pkgdir/var/run
}

sha512sums="
14e5fbec2092fda6f49c71551cd3931ec6e12e79b05ad2d5a420e034ccf8185d354015f62c7c1d1ea502befd171e56a721565e0837a2c5ae3c4a21e6fe3fae8a  wt-4.8.2.tar.gz
"