aboutsummaryrefslogtreecommitdiffstats
path: root/community/wt/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-03-02 14:15:44 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-03-02 14:53:00 -0300
commit41f5158548659f6549e2040a15bd023cd12d0d7c (patch)
tree88109bb6641d9a92c8a0aab538efe4aa61884427 /community/wt/APKBUILD
parent5857fb2b57fdaf5f93aca5d018dd3c911bc2cf12 (diff)
downloadaports-41f5158548659f6549e2040a15bd023cd12d0d7c.tar.bz2
aports-41f5158548659f6549e2040a15bd023cd12d0d7c.tar.xz
community/wt: modernize
Diffstat (limited to 'community/wt/APKBUILD')
-rw-r--r--community/wt/APKBUILD34
1 files changed, 16 insertions, 18 deletions
diff --git a/community/wt/APKBUILD b/community/wt/APKBUILD
index 22169414a9..83d6258b94 100644
--- a/community/wt/APKBUILD
+++ b/community/wt/APKBUILD
@@ -2,8 +2,8 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=wt
pkgver=4.2.1
-pkgrel=0
-pkgdesc="A C++ library and application server for developing and deploying web applications"
+pkgrel=1
+pkgdesc="C++ library and application server for developing and deploying web applications"
url="https://www.webtoolkit.eu"
arch="all"
license="GPL-2.0-or-later WITH openssl-exception"
@@ -18,25 +18,23 @@ subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/kdeforche/wt/archive/$pkgver.tar.gz"
build() {
- mkdir -p build && cd build
- CXXFLAGS="-fpermissive" \
- cmake \
- -DCONNECTOR_HTTP=ON \
- -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 \
- ..
- make
+ CXXFLAGS="$CXXFLAGS -fpermissive" \
+ cmake -B build . \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCONNECTOR_HTTP=ON \
+ -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
+ make -C build
}
package() {
- cd "$builddir"/build
- make DESTDIR=$pkgdir install
+ make -C build DESTDIR=$pkgdir install
rm -rf $pkgdir/usr/cmake
rm -rf $pkgdir/var/run
}