# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=wt pkgver=4.0.5 pkgrel=3 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" 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_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="5513b428bfd3e778726c947606677f3e0774b38e640e61cd94906a2e0c75d204a68072b54ddeb3614a7ba08f5668e6eb3a96d9c8df3744b09dc36ad9be12d924 wt-4.0.5.tar.gz"