# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=gupnp-av
pkgver=0.14.1
pkgrel=0
pkgdesc="Small utility library that aims to ease the handling and implementation of UPnP A/V profiles"
url="https://gitlab.gnome.org/GNOME/gupnp-av"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	meson
	gobject-introspection-dev
	vala
	libxml2-dev
	"
subpackages="$pkgname-dev"
source="https://download.gnome.org/sources/gupnp-av/${pkgver%.*}/gupnp-av-$pkgver.tar.xz
	no-deprecated-declarations.patch
	"

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

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

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

sha512sums="
b17b38c32fe068b0b74a7ee357be5f3a0df3320fd04338b5f6b04231c601d6cc57d2770c6e6ca42ded5e1be28a6b2746d16417eb322889ffe6a975ec58205655  gupnp-av-0.14.1.tar.xz
dab0b1337dcc3f28ad15167749298301716727ff9747cbd4612494b0669664d52c570b4e128587ae14fade1e19c4d6bf58af7c6b4d166d3afa7d0a5458fddfe3  no-deprecated-declarations.patch
"
