diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 28 insertions, 12 deletions
@@ -1,12 +1,13 @@ pkgbase = cutelyst pkgdesc = A Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework. pkgver = 1.4.0 - pkgrel = 1 + pkgrel = 2 url = http://cutelyst.org arch = i686 arch = x86_64 license = LGPL2.1 makedepends = cmake + makedepends = doxygen depends = qt5-base depends = uwsgi source = https://github.com/cutelyst/cutelyst/archive/r1.4.0.tar.gz @@ -14,3 +15,6 @@ pkgbase = cutelyst pkgname = cutelyst +pkgname = cutelyst-docs + pkgdesc = Doxygen HTML API Documentation + @@ -1,30 +1,42 @@ # Maintainer: Simon Wilper <sxw@chronowerks.de> -pkgname=cutelyst +pkgbase=cutelyst +pkgname=('cutelyst' 'cutelyst-docs') pkgver=1.4.0 -pkgrel=1 +pkgrel=2 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') -makedepends=('cmake') +makedepends=('cmake' 'doxygen') 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}" + 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 + cd build + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ".." + make } -package() { - cd "$srcdir/${pkgname}-r${pkgver}/build" - make DESTDIR="$pkgdir/" install +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 +} + |