PKGBUILDs/community/wt/PKGBUILD

56 lines
1.7 KiB
Bash
Raw Normal View History

2015-10-24 01:13:10 +00:00
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Denis Martinez <deuns.martinez@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - add -fsigned-char to cflags
pkgname=wt
2017-09-05 12:30:46 +00:00
pkgver=3.3.8
2017-09-21 12:38:49 +00:00
pkgrel=3
2015-10-24 01:13:10 +00:00
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' 'postgresql-libs' 'fcgi' 'sqlite' 'mysql++' 'qt4' 'doxygen' 'mesa' 'glu')
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')
2017-09-05 19:17:07 +00:00
source=("$pkgname-$pkgver.tar.gz::https://github.com/kdeforche/wt/archive/${pkgver}.tar.gz")
sha512sums=('227bfa888ad53c9a22205d79de0111a286fd1f6a6fa46a1a8fb3795fdae45fc1cc19b95600585310cd10fee57e6355067f073c7ece72e68aa5656b512ec311ad')
2015-10-24 01:13:10 +00:00
build() {
2017-09-05 19:17:07 +00:00
cd "$srcdir"/${pkgname}-${pkgver}
2015-10-24 01:13:10 +00:00
CFLAGS+=" -fsigned-char"
CXXFLAGS+=" -fsigned-char"
[[ -d build ]] && rm -r build
mkdir -p build && cd build
cmake \
-DCONNECTOR_HTTP=ON \
-DWT_CPP_11_MODE=-std=c++11 \
-DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWEBUSER=http \
-DWEBGROUP=http \
-DUSE_SYSTEM_SQLITE3=ON \
-DINSTALL_EXAMPLES=ON \
2015-11-04 19:07:33 +00:00
-DBUILD_EXAMPLES=ON \
2015-10-24 01:13:10 +00:00
-DINSTALL_FINDWT_CMAKE_FILE=ON \
..
make
}
package() {
2017-09-05 19:17:07 +00:00
cd "$srcdir"/${pkgname}-${pkgver}/build
2015-10-24 01:13:10 +00:00
2016-11-05 04:34:02 +00:00
make DESTDIR="$pkgdir" install
2015-10-24 01:13:10 +00:00
}