blob: b13eb76504789781b66e5ebe803e5300cdf2b97a (
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
|
# Maintainer: Simon Wilper <sxw@chronowerks.de>
pkgbase=cutelyst
pkgname=('cutelyst' 'cutelyst-docs')
pkgver=1.4.0
pkgrel=3
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' 'grantlee')
source=("https://github.com/cutelyst/cutelyst/archive/r${pkgver}.tar.gz")
md5sums=('327a9cb263ad5a41e5d920b660e508b3')
build() {
mkdir -p "$srcdir/${pkgname}-r${pkgver}/build"
cd "$srcdir/${pkgname}-r${pkgver}"
# uwsgi expects plugins under lib/uwsgi not lib/uwsgi/plugins
sed -i.orig -E -e 's@(UWSGI_PLUGINS_DIR) ".+?" (.+)$@\1 "/usr/lib/uwsgi" \2@' CMakeLists.txt
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ".."
make
}
package_cutelyst-docs() {
pkgdesc="Doxygen HTML API Documentation"
cd "$srcdir/${pkgbase}-r${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}-r${pkgver}/build"
make DESTDIR="$pkgdir/" install
}
|