upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / qhttpengine / repos / community-x86_64 / PKGBUILD
blobdb577c0d496c8e401fa47e36f3b87a28a024ca33
1 # Maintainer: Balló György <ballogyor+arch at gmail dot com>
2 # Contributor: Nathan Osman <nathan@quickmediasolutions.com>
4 pkgname=qhttpengine
5 pkgver=1.0.1
6 pkgrel=4
7 pkgdesc='Simple and secure HTTP server for Qt'
8 arch=('x86_64')
9 url='https://github.com/nitroshare/qhttpengine'
10 license=('MIT')
11 depends=('qt5-base')
12 makedepends=('cmake' 'ninja')
13 source=("https://github.com/nitroshare/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz")
14 sha256sums=('6505cf889909dc29bab4069116656e7ca5a9e879f04935139439c5691a76c55e')
16 build() {
17   cmake -S $pkgname-$pkgver -B build -G Ninja -DCMAKE_INSTALL_PREFIX='/usr' -DBUILD_TESTS=ON
18   cmake --build build
21 check(){
22   ctest --test-dir build
25 package() {
26   DESTDIR="$pkgdir" cmake --install build
27   install -Dm644 $pkgname-$pkgver/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"