aboutsummaryrefslogtreecommitdiffstats
path: root/community/wt/APKBUILD
blob: 087bd8a49d48b02a89230c290071e557bc048870 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=wt
pkgver=4.5.0
pkgrel=1
pkgdesc="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/wt/archive/$pkgver.tar.gz"

build() {
	CXXFLAGS="$CXXFLAGS -fpermissive" \
	cmake -B build . \
		-DCMAKE_BUILD_TYPE=None \
	    -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 -C build
}

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

sha512sums="4cb8d822c4be4f120c1718410d1f493c9a81f8356eaa1b8dd5aea5095b7258bb950706c7871a2be89b1068ad34fe4153c02fb5ca6d5cc5870cb34107bfc5fcc9  wt-4.5.0.tar.gz"