summaryrefslogtreecommitdiff
path: root/community-staging/wt
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-07-12 00:04:35 +0000
committerroot <root@rshg054.dnsready.net>2012-07-12 00:04:35 +0000
commit00d32b0938eebfa45f0543cae655abf5233eb99c (patch)
tree7528e734c1f6f955da0baca5909906e797562c09 /community-staging/wt
parentb44e3e7f16abe5e4cb428571db65d300b7cc44be (diff)
Thu Jul 12 00:04:34 UTC 2012
Diffstat (limited to 'community-staging/wt')
-rw-r--r--community-staging/wt/PKGBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/community-staging/wt/PKGBUILD b/community-staging/wt/PKGBUILD
new file mode 100644
index 000000000..f6a9365c4
--- /dev/null
+++ b/community-staging/wt/PKGBUILD
@@ -0,0 +1,57 @@
+# $Id: PKGBUILD 73575 2012-07-10 14:02:36Z 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.2.2rc1
+_pkgver=3.2.2-rc1
+pkgrel=1
+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>=1.36')
+makedepends=('boost>=1.36' 'cmake>=2.8'
+ 'postgresql-libs' 'zlib' 'fcgi' 'sqlite' 'libharu' 'graphicsmagick' 'pango' 'mysql++' 'qt')
+optdepends=('openssl: for SSL support in built-in webserver'
+ 'zlib: for compression in HTTP protocol'
+ 'fcgi: for FastCGI support'
+ 'postgresql-libs: for PostgreSQL Dbo support'
+ 'sqlite: for Sqlite Dbo support'
+ 'libharu: for PDF generation (WPdfImage)'
+ 'graphicsmagick: for raster image support (WRasterImage)'
+ 'pango: for advanced font rendering (WRasterImage)'
+ 'mysql++: for the hangman example'
+ 'qt: for the Wt/Qt interopability example (wtwithqt)')
+backup=('etc/wt/wt_config.xml')
+source=(http://downloads.sourceforge.net/witty/$pkgname-${_pkgver}.tar.gz)
+md5sums=('4709f48c65eceb862da693f122ccca59')
+
+build() {
+ cd ${srcdir}/${pkgname}-${_pkgver}
+ sed -i "s/<< s /<< *s /g" src/Wt/Ext/DataStore.C
+
+ mkdir -p build
+ cd build
+ cmake \
+ -DCONNECTOR_HTTP=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_EXE_LINKER_FLAGS="-lboost_random" \
+ -DWEBUSER=http \
+ -DWEBGROUP=http \
+ -DUSE_SYSTEM_SQLITE3=ON \
+ -DINSTALL_EXAMPLES=ON \
+ ..
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${_pkgver}/build
+ make DESTDIR=${pkgdir} install
+
+ mkdir -p ${pkgdir}/usr/share/cmake-2.8/Modules
+ mv ${pkgdir}/usr/cmake/FindWt.cmake ${pkgdir}/usr/share/cmake-2.8/Modules/
+ rm -r ${pkgdir}/usr/cmake
+ rm -rf $pkgdir/var/run
+}