makedepends=(cmake qtbase)

description="Simple and secure HTTP server for Qt"
url="https://github.com/nitroshare/qhttpengine"

packager="Great-OS Team"
maintainer="Great-OS Team"

name="qhttpengine"
version="1.0.1"
release=1

source=(https://github.com/nitroshare/qhttpengine/archive/$version/qhttpengine-$version.tar.gz)
build () 
{ 
    cmake -S $name-$version -B build -G Ninja -DCMAKE_INSTALL_PREFIX='/usr' -DBUILD_TESTS=ON;
    cmake --build build
}
package () 
{ 
    DESTDIR="$PKG" cmake --install build;
    install -Dm644 $name-$version/LICENSE.txt "$PKG/usr/share/licenses/$name/LICENSE.txt"
}
