summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7370d878c1c6451dc5ed9758845aba7bf133ce56 (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
43
# Maintainer: Marat Moustafine <moustafine-@t-tuta-d.t-io>

_pkgname=cutelyst
pkgname=$_pkgname-git
pkgver=latest
pkgrel=1
pkgdesc='A Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework'
arch=('i686' 'x86_64')
url=https://github.com/$_pkgname/$_pkgname
license=('LGPL2.1')
depends=('grantlee' 'jemalloc' 'libmemcached' 'libpwquality' 'libsimplemail-qt')
makedepends=('cmake' 'git' 'uwsgi')
optdepends=('uwsgi: for the uWSGI engine')
provides=($_pkgname)
conflicts=($_pkgname)
source=(git+$url.git)
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --long --tags | sed -r 's/^[r|v]//;s/-/+/g'
}

build () {
  cd $_pkgname
  mkdir -p build

  cd build
  cmake \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DBUILD_ALL=ON \
    -DPLUGIN_VIEW_CLEARSILVER=OFF \
    -DBUILD_TESTS=OFF \
    -DBUILD_EXAMPLES=OFF \
    ..
  make
}

package() {
  cd $_pkgname/build
  make DESTDIR=$pkgdir install
}