makedepends=(cmake qtbase)

description="Simple multicast DNS library for Qt"
url="https://github.com/nitroshare/qmdnsengine"

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

name="qmdnsengine"
version="0.2.1"
release=1

source=(https://github.com/nitroshare/qmdnsengine/archive/$version/qmdnsengine-$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"
}
