# Maintainer:
pkgname=libmicrodns
pkgver=0.2.0
pkgrel=1
pkgdesc="Minimal mDNS library"
url="https://github.com/videolabs/libmicrodns"
arch="all"
license="LGPL-2.1-or-later"
makedepends="meson"
subpackages="$pkgname-dev"
source="https://github.com/videolabs/libmicrodns/releases/download/$pkgver/microdns-$pkgver.tar.xz"
builddir="$srcdir/microdns-$pkgver"

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
fc642d463f52409e76515897e3662b7b08ee35dc760e595980c343a4fd24f1b76cdfbd4f91ea2115a02243be8ae8908670440ead96715c8983abb2a8559702b6  microdns-0.2.0.tar.xz
"
