summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2818da09bbd64a5b1ed41f5dbec6ac5cdffbe52e (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
# Maintainer: Vinícius dos Santos Oliveira <vini.ipsmaker@gmail.com>
pkgname=tufao0
pkgver=0.8.2
pkgrel=1
pkgdesc="An asynchronous web framework for C++ built on top of Qt"
arch=('i686' 'x86_64')
url="https://github.com/vinipsmaker/tufao"
license=('LGPL2')
depends=('qt4')
makedepends=('cmake')
source=("https://github.com/vinipsmaker/tufao/archive/${pkgver}.tar.gz")
md5sums=('24f6d66a987c797fab9506ef8f480475')

build() {
  mkdir "${srcdir}/tufao-${pkgver}/build"
  cd "${srcdir}/tufao-${pkgver}/build"
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
  make

  cd "${srcdir}/tufao-${pkgver}/tools/pluginserverconfigeditor"
  mkdir build
  cd build
  qmake-qt4 ..
  make
}

package() {
  cd "${srcdir}/tufao-${pkgver}/build"
  make DESTDIR="$pkgdir" install

  cd "${srcdir}/tufao-${pkgver}/tools/pluginserverconfigeditor/build"
  install -D tufao-routes-editor "$pkgdir/usr/bin/tufao-routes-editor"
}