diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/wt/PKGBUILD | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/wt/PKGBUILD')
-rw-r--r-- | community/wt/PKGBUILD | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/community/wt/PKGBUILD b/community/wt/PKGBUILD new file mode 100644 index 000000000..47c8e9153 --- /dev/null +++ b/community/wt/PKGBUILD @@ -0,0 +1,53 @@ +# $Id: PKGBUILD 93696 2013-07-08 13:32:56Z spupykin $ +# 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.0 +_pkgver=3.3.0 +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') +makedepends=('boost' 'cmake>=2.8' 'postgresql-libs' 'zlib' 'fcgi' 'sqlite' 'graphicsmagick' 'pango' 'mysql++' 'qt4') +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' + 'graphicsmagick: for raster image support (WRasterImage)' + 'pango: for advanced font rendering (WRasterImage)' + '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=('b2331942ad01c4fda376abf30c6a503a') + +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 + + 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 +} |