# Contributor: Marvin Preuss <marvin@xsteadfastx.org>
# Maintainer: Sodface <sod@sodface.com>
pkgname=libupnpp
pkgver=1.0.3
pkgrel=0
pkgdesc="C++ wrapper for libupnp"
url="https://framagit.org/medoc92/libupnpp"
arch="all"
license="LGPL-2.0-or-later"
options="!check" # no test suite
makedepends="
	curl-dev
	expat-dev
	libnpupnp-dev
	meson
	"
subpackages="$pkgname-dev"
source="libupnpp-$pkgver.tar.gz::https://www.lesbonscomptes.com/upmpdcli/downloads/libupnpp-$pkgver.tar.gz"

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

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

sha512sums="
13ccb1f41c398318e44f6b0d6fdb1a4c1a9f913af1d0b5ffd2b9f7bea1e5c807f9921c26d3c29d36c9d7b42280a8830b7164992f6dc62ffdcd3eaa96355bcbaa  libupnpp-1.0.3.tar.gz
"
