mio fc0799ea38 community/webforcpp: build with ninja backend
Add samurai to makedepends due to abuild setting ninja as default cmake
generator. Switch fully to cmake and ninja for build system when supported
without further adaptation.

```
CMake Error: CMake was unable to find a build program corresponding to
"Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a
different build tool.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
```
2025-10-22 10:14:44 +02:00

37 lines
1.1 KiB
Plaintext

# Contributor: David Sugar <tychosoft@gmail.com>
# Maintainer: David Sugar <tychosoft@gmail.com>
pkgname=webforcpp
pkgver=0.2.0
pkgrel=0
pkgdesc="Modern C++17 header-only library for web services"
url="https://gitlab.com/tychosoft/webforcpp"
arch="noarch"
license="MIT"
makedepends="cmake samurai openssl-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://gitlab.com/tychosoft/webforcpp/-/archive/v$pkgver/webforcpp-v$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-v$pkgver
build() {
cmake -B build \
-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release .
cmake --build build
}
check() {
ctest --test-dir build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
install -Dm644 FEATURES.md "$pkgdir"/usr/share/doc/$pkgname/FEATURES.md
}
sha512sums="
3ae2aebf8c2758f4ce14f6cd02e22ff60c9ed88cbc75d8d283ca01738c3943a116ca2372c98ee54eb02c717dc104aa29bbec6d517d9accef623f8c54f59bfcf0 webforcpp-v0.2.0.tar.gz
"