blob: af2560fa0fc1013ce158f0def56e11401a8a6972 (
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
44
45
46
47
48
49
|
# $Id: PKGBUILD 113504 2014-06-24 11:16:56Z svenstaro $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Denis Martinez <deuns.martinez@gmail.com>
pkgname=wt
pkgver=3.3.3
_pkgver=3.3.3
pkgrel=2
pkgdesc="a C++ library and application server for developing and deploying web applications"
arch=('i686' 'x86_64')
url="http://www.webtoolkit.eu/"
license=('GPL')
depends=('boost-libs' 'libharu' 'graphicsmagick' 'pango' 'zlib')
makedepends=('boost' 'cmake>=2.8' 'postgresql-libs' 'fcgi' 'sqlite' 'mysql++' 'qt4')
optdepends=('openssl: for SSL support in built-in webserver'
'fcgi: for FastCGI support'
'postgresql-libs: for PostgreSQL Dbo support'
'sqlite: for Sqlite Dbo support'
'mysql++: for the hangman example'
'qt4: for the Wt/Qt interopability example (wtwithqt)')
backup=('etc/wt/wt_config.xml')
source=(http://downloads.sourceforge.net/witty/$pkgname-${_pkgver}.tar.gz)
md5sums=('90211e80d0e14ef7ff2e3152380bd05d')
build() {
cd ${srcdir}/${pkgname}-${_pkgver}
[[ -d build ]] && rm -r build
mkdir -p build && cd build
cmake \
-DCONNECTOR_HTTP=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWEBUSER=http \
-DWEBGROUP=http \
-DUSE_SYSTEM_SQLITE3=ON \
-DINSTALL_EXAMPLES=ON \
..
make
}
package() {
cd ${srcdir}/${pkgname}-${_pkgver}/build
make DESTDIR=${pkgdir} install
install -Dm644 ${pkgdir}/usr/cmake/FindWt.cmake ${pkgdir}/usr/share/cmake-3.0/Modules/FindWt.cmake
rm -r ${pkgdir}/usr/cmake
rm -rf $pkgdir/var/run
}
|