# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=wt pkgver=4.1.1 pkgrel=0 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="c31d4bf82c2bd08b9cd2e428e3fd9edf49e7e88b1d13c27b1f6c1b676e8702e3b195fa46d814f3bdb2ea47c23e99f59a7c5625119b910ce5261d84d1a1fd87fa wt-4.1.1.tar.gz"