aboutsummaryrefslogtreecommitdiffstats
path: root/community/wt/APKBUILD
blob: e306af886b9583aec1464bd192d57feba09904ac (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=wt
pkgver=3.3.7
pkgrel=0
pkgdesc="A C++ library and application server for developing and deploying web applications"
url="http://www.webtoolkit.eu"
arch="all"
license="GPL"
depends=""
depends_dev="zlib-dev boost-dev sqlite-dev mesa-dev glu-dev graphicsmagick-dev
	libressl-dev pango-dev sqlite-dev fcgi-dev postgresql-dev qt-dev libharu-dev"
makedepends="$depends_dev cmake boost"
pkgroups="wt"
pkgusers="wt"
options="!check"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/kdeforche/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	mkdir -p build && cd build
	CXXFLAGS="-fpermissive" \
	cmake \
	      -DCONNECTOR_HTTP=ON \
	      -DWT_CPP_11_MODE=-std=c++11 \
	      -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 \
	      -DINSTALL_FINDWT_CMAKE_FILE=ON \
	..
	make
}

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

sha512sums="f179b42eedcfd2e61f26ef92c6aad40c55c76c9a688269c4d5bd55dd48381073d6269d9c2ab305f15ef455616d48183a3fc0ba08c740a8e18318a2ad2fb13826  wt-3.3.7.tar.gz"