diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 10:42:12 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 10:42:12 +0000 |
commit | d1063e281e6d20c36a03455baa86b9eafd594510 (patch) | |
tree | bf8e76379b07a69daa895bfecfbc6bde7619a8ba /community/wt | |
parent | 83f3b2fd58792182537307e12b66d322f381d826 (diff) | |
download | aports-d1063e281e6d20c36a03455baa86b9eafd594510.tar.bz2 aports-d1063e281e6d20c36a03455baa86b9eafd594510.tar.xz |
community/wt: upgrade to 3.3.6, moved from testing
Diffstat (limited to 'community/wt')
-rw-r--r-- | community/wt/APKBUILD | 51 | ||||
-rw-r--r-- | community/wt/wt.pre-install | 8 |
2 files changed, 59 insertions, 0 deletions
diff --git a/community/wt/APKBUILD b/community/wt/APKBUILD new file mode 100644 index 0000000000..a3e2ca3215 --- /dev/null +++ b/community/wt/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=wt +pkgver=3.3.6 +_pkgver=3.3.6 +pkgrel=0 +pkgdesc="A C++ library and application server for developing and deploying web applications" +url="http://www.webtoolkit.eu" +arch="all" +license="GPL" +depends="" +depends_dev="zlib-dev boost-dev sqlite-dev mesa-dev glu-dev graphicsmagick-dev + openssl-dev pango-dev sqlite-dev fcgi-dev postgresql-dev qt-dev libharu-dev" +makedepends="$depends_dev cmake boost" +install="" +pkgroups="wt" +pkgusers="wt" +subpackages="$pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/kdeforche/$pkgname/archive/$pkgver.tar.gz" + +builddir="$srcdir"/$pkgname-$pkgver + +build() { + cd "$builddir" + 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=$pkgusers \ + -DWEBGROUP=$pkggroups \ + -DRUNDIR="$pkgdir"/var/run/wt \ + -DUSE_SYSTEM_SQLITE3=ON \ + -DINSTALL_EXAMPLES=ON \ + -DBUILD_EXAMPLES=OFF \ + -DINSTALL_FINDWT_CMAKE_FILE=ON \ + .. + make || return 1 +} + +package() { + cd "$builddir"/build + make DESTDIR=$pkgdir install + rm -r $pkgdir/usr/cmake + rm -rf $pkgdir/var/run +} + +md5sums="a5be5f7efa93c4eae7f1d8812ff78c70 wt-3.3.6.tar.gz" +sha256sums="8f82576076deb1d72cfb8ff42cf7ffb3553a45da32123b2a3cf36e66040678ab wt-3.3.6.tar.gz" +sha512sums="d6135713d300bcd3956a4fd673af73be0561eb5d6aa91c47255b966950ddb411217e6a826c1d11c0d941dbb6d006c9926231d7334b21de6256cca331066e18a6 wt-3.3.6.tar.gz" diff --git a/community/wt/wt.pre-install b/community/wt/wt.pre-install new file mode 100644 index 0000000000..35ff869a34 --- /dev/null +++ b/community/wt/wt.pre-install @@ -0,0 +1,8 @@ +#!/bin/sh + +addgroup -S -g 82 www-data 2>/dev/null +addgroup -S wt 2>/dev/null +adduser -S -D -H -s /sbin/nologin -G wt -g wt wt 2>/dev/null +addgroup wt www-data 2>/dev/null + +exit 0 |