# Maintainer: Simon Wilper pkgbase=cutelyst pkgname=('cutelyst' 'cutelyst-docs') pkgver=1.8.0 pkgrel=1 pkgdesc="A Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework." arch=('i686' 'x86_64') url="http://cutelyst.org" license=('LGPL2.1') depends=('qt5-base' 'uwsgi' 'grantlee') makedepends=('cmake' 'doxygen' 'graphviz') source=("https://github.com/cutelyst/cutelyst/archive/v${pkgver}.tar.gz") sha256sums=('2076b0c1eed5770f82b4d9a5dec24632856727d2894dc746f22bdc6f9d6eff71') build() { mkdir -p "$srcdir/${pkgname}-${pkgver}/build" cd "$srcdir/${pkgname}-${pkgver}" cd build cmake \ -DCMAKE_BUILD_TYPE=Release \ -DUWSGI_PLUGINS_DIR=/usr/lib/uwsgi \ -DCMAKE_INSTALL_PREFIX=/usr ".." make } package_cutelyst-docs() { pkgdesc="Doxygen HTML API Documentation" cd "$srcdir/${pkgbase}-${pkgver}/build" make docs install -d -m755 ${pkgdir}/usr/share/doc/cutelyst/html/ install -m644 apidox/* ${pkgdir}/usr/share/doc/cutelyst/html/ } package_cutelyst() { cd "$srcdir/${pkgname}-${pkgver}/build" make DESTDIR="$pkgdir/" install }